summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-01-13 11:34:07 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-01-13 11:33:59 -0500
commit0ea378802d60276f0e3eed4da5ee793fcafec454 (patch)
treeed8fcae7db547c3335b4b4697d6bc5e6e2af0b27
parent83defff02888bd8ba10197767e3586150a2eeaf9 (diff)
elm_box: allow aspects 1 <= x < 0.0
this was a typo in my initial implementation @fix
-rw-r--r--src/lib/elementary/els_box.c3
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!");