gengrid: add curly braces to avoid ambiguous 'if'
authorAmitesh Singh <amitesh.sh@samsung.com>
Wed, 26 Aug 2015 09:04:58 +0000 (14:34 +0530)
committerAmitesh Singh <amitesh.sh@samsung.com>
Wed, 26 Aug 2015 09:08:44 +0000 (14:38 +0530)
src/lib/elm_gengrid.c

index 4d47952..e734399 100644 (file)
@@ -2445,10 +2445,12 @@ _elm_gengrid_item_edge_check(Elm_Object_Item *eo_it,
              if ((sd->horizontal) && (ix == cx) && (iy > cy))
                return EINA_FALSE;
              else if ((!sd->horizontal) && (iy == cy))
-               if ((!mirrored && (ix >cx)) || (mirrored && (ix < cx)))
-                 return EINA_FALSE;
-               else
-                 return EINA_TRUE;
+               {
+                  if ((!mirrored && (ix > cx)) || (mirrored && (ix < cx)))
+                    return EINA_FALSE;
+                  else
+                    return EINA_TRUE;
+               }
              else
                return EINA_TRUE;
           }
@@ -2471,10 +2473,12 @@ _elm_gengrid_item_edge_check(Elm_Object_Item *eo_it,
              if ((sd->horizontal) && (ix == cx) && (iy < cy))
                return EINA_FALSE;
              else if ((!sd->horizontal) && (iy == cy))
-               if ((!mirrored && (ix < cx)) || (mirrored && (ix > cx)))
-                 return EINA_FALSE;
-               else
-                 return EINA_TRUE;
+               {
+                  if ((!mirrored && (ix < cx)) || (mirrored && (ix > cx)))
+                    return EINA_FALSE;
+                  else
+                    return EINA_TRUE;
+               }
              else
                return EINA_TRUE;
           }