ctxpopup: fix build warning 09/167809/1 submit/tizen/20180124.103314
authorJinYong Park <j4939.park@samsung.com>
Mon, 22 Jan 2018 07:26:23 +0000 (16:26 +0900)
committerJinYong Park <j4939.park@samsung.com>
Mon, 22 Jan 2018 07:26:23 +0000 (16:26 +0900)
@tizen_fix

Change-Id: I102f8cd43efd7aa7d7627586cb89576626147010
Signed-off-by: JinYong Park <j4939.park@samsung.com>
src/mobile_lib/elc_ctxpopup.c

index ffb021d55f2a8c90625a6c4ecc7228f4f0734667..3e016a6ff4f8f30669ec5711578682ccc6697747 100644 (file)
@@ -561,14 +561,22 @@ _base_geometry_calc(Evas_Object *obj,
    evas_object_size_hint_max_get(obj, &max_size.x, &max_size.y);
    if (max_size.x == -1)
      {
-        if ((str = edje_object_data_get(sd->layout, "match_max_width")) &&
-            (!strcmp(str, "portrait_width")) && (win))
-          elm_win_screen_size_get(win, NULL, NULL, &max_size.x, NULL);
-        else if (str = edje_object_data_get(sd->layout, "visible_maxw"))
-          max_size.x = (int)(atoi(str)
-                             * elm_config_scale_get()
-                             * elm_object_scale_get(obj)
-                             / edje_object_base_scale_get(sd->layout) + 0.5);
+        str = edje_object_data_get(sd->layout, "match_max_width");
+
+        if ((str) && (win) && (!strcmp(str, "portrait_width")))
+          {
+             elm_win_screen_size_get(win, NULL, NULL, &max_size.x, NULL);
+          }
+        else
+          {
+             str = edje_object_data_get(sd->layout, "visible_maxw");
+
+             if (str)
+               max_size.x = (int)(atoi(str)
+                                  * elm_config_scale_get()
+                                  * elm_object_scale_get(obj)
+                                  / edje_object_base_scale_get(sd->layout) + 0.5);
+          }
      }
    if (max_size.y == -1)
      {