edje calc no longer performs calculations for group parts of fixed size > 0
authorMike Blumenkrantz <zmike@osg.samsung.com>
Wed, 1 Apr 2015 03:27:01 +0000 (23:27 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Wed, 1 Apr 2015 03:31:11 +0000 (23:31 -0400)
when I said > 0 in the last commit message, I was thinking ahead to this commit
which I knew I would later have to make, but had not yet written because I had not
spent the requisite number of hours debugging the code to know that I needed to
have the check in both the code and the commit message

ref 3a451650d2f875077419e5777c49d04c618211f0

src/lib/edje/edje_calc.c

index 243d93f..1b74301 100644 (file)
@@ -3232,7 +3232,7 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
              min = &ep->chosen_description->min;
              max = &ep->chosen_description->max;
           }
-        if (min && max && (min->w == max->w) && (min->h == max->h))
+        if (min && max && (min->w == max->w) && (min->h == max->h) && (min->w > 0) && (min->h > 0))
           mmw = min->w, mmh = min->h;
         else
           edje_object_size_min_calc(ep->typedata.swallow->swallowed_object,