[Gengrid] Fix for circle gengrid item position calculation 78/217578/4
authorSuresh Kumar <suresh.ku1@samsung.com>
Tue, 12 Nov 2019 12:37:37 +0000 (18:07 +0530)
committerHermet Park <chuneon.park@samsung.com>
Fri, 29 Nov 2019 07:08:29 +0000 (07:08 +0000)
sd->circle.enabled condition is not true for circle gengrid style.

Change-Id: I1a6cbfd69417012cfb7e63221315ab0e84c2c363
Signed-off-by: Suresh Kumar <suresh.ku1@samsung.com>
src/lib/elementary/elm_gengrid.c

index c66c786..5f25f34 100755 (executable)
@@ -707,7 +707,7 @@ _calc(void *data)
 
 //TIZEN_ONLY(20190130) : Apply circle gengrid
              const char* gengrid_style = elm_widget_style_get(sd->obj);
-             if (sd->circle.enabled && !strcmp(gengrid_style, "circle"))
+             if (gengrid_style && !strcmp(gengrid_style, "circle"))
                {
                   _circle_path_pos(sd, 0, 0, &padding_space, NULL);
                   minw += (2 * padding_space);
@@ -729,7 +729,7 @@ _calc(void *data)
                   (count_group * sd->group_item_height);
 //TIZEN_ONLY(20190130) : Apply circle gengrid
              const char* gengrid_style = elm_widget_style_get(sd->obj);
-             if (sd->circle.enabled && !strcmp(gengrid_style, "circle"))
+             if (gengrid_style && !strcmp(gengrid_style, "circle"))
                {
                   _circle_path_pos(sd, 0, 0, NULL, &padding_space);
                   minh += (2 * padding_space);