diff options
-rw-r--r-- | src/lib/elementary/els_box.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elementary/els_box.c b/src/lib/elementary/els_box.c index 05e88d2718..0a34198f2d 100644 --- a/src/lib/elementary/els_box.c +++ b/src/lib/elementary/els_box.c | |||
@@ -155,7 +155,8 @@ _smart_extents_non_homogeneous_calc(Evas_Object_Box_Data *priv, int w, int h, in | |||
155 | *rminh += *rh; | 155 | *rminh += *rh; |
156 | 156 | ||
157 | evas_object_size_hint_aspect_get(opt->obj, &aspect, &asx, &asy); | 157 | evas_object_size_hint_aspect_get(opt->obj, &aspect, &asx, &asy); |
158 | if (aspect && ((asx < 1) || (asy < 1))) | 158 | if (aspect && ((!EINA_DBL_NONZERO(asx)) || (asx < 0.0) || |
159 | (!EINA_DBL_NONZERO(asy)) || (asy < 0.0))) | ||
159 | { | 160 | { |
160 | aspect = EVAS_ASPECT_CONTROL_NONE; | 161 | aspect = EVAS_ASPECT_CONTROL_NONE; |
161 | ERR("Invalid aspect specified!"); | 162 | ERR("Invalid aspect specified!"); |