discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=0ea378802d60276f0e3eed4da5ee793fcafec454

commit 0ea378802d60276f0e3eed4da5ee793fcafec454
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Jan 13 11:34:07 2017 -0500

    elm_box: allow aspects 1 <= x < 0.0
    
    this was a typo in my initial implementation
    
    @fix
---
 src/lib/elementary/els_box.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/els_box.c b/src/lib/elementary/els_box.c
index 05e88d2..0a34198 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
         *rminh += *rh;
 
         evas_object_size_hint_aspect_get(opt->obj, &aspect, &asx, &asy);
-        if (aspect && ((asx < 1) || (asy < 1)))
+        if (aspect && ((!EINA_DBL_NONZERO(asx)) || (asx < 0.0) ||
+          (!EINA_DBL_NONZERO(asy)) || (asy < 0.0)))
           {
              aspect = EVAS_ASPECT_CONTROL_NONE;
              ERR("Invalid aspect specified!");

-- 


Reply via email to