From 73bfd4f04d6b9885bab271d16c688f97dcf626a3 Mon Sep 17 00:00:00 2001 From: Vitalii Vorobiov Date: Mon, 13 Feb 2017 16:27:55 +0200 Subject: efl_gfx_path: fix typo in _path_bounds_get Wrong position was used while going through the array of points @fix --- src/lib/efl/interfaces/efl_gfx_path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/efl/interfaces/efl_gfx_path.c b/src/lib/efl/interfaces/efl_gfx_path.c index 3501379a75..df424c1d3e 100644 --- a/src/lib/efl/interfaces/efl_gfx_path.c +++ b/src/lib/efl/interfaces/efl_gfx_path.c @@ -221,7 +221,7 @@ _efl_gfx_path_bounds_get(Eo *obj EINA_UNUSED, Efl_Gfx_Path_Data *pd, Eina_Rect * maxx = pd->points[0]; maxy = pd->points[1]; - for (i = 1; i < pd->points_count; i += 2) + for (i = 2; i < pd->points_count; i += 2) { minx = minx < pd->points[i] ? minx : pd->points[i]; miny = miny < pd->points[i + 1] ? miny : pd->points[i + 1]; -- cgit v1.2.1