fix test min AND max bool flags to work right again. :)
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 24 Jan 2011 10:35:34 +0000 (10:35 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 24 Jan 2011 10:35:34 +0000 (10:35 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@56280 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_calc.c

index 712ba3a..05646a7 100644 (file)
@@ -732,11 +732,11 @@ _edje_part_recalc_single_textblock(FLOAT_T sc,
                  evas_object_textblock_style_insets_get(ep->object, &ins_l, &ins_r, &ins_t, &ins_b);
                  mw = ins_l + tw + ins_r;
                  mh = ins_t + th + ins_b;
-//               if (chosen_desc->text.min_x)
+                 if (chosen_desc->text.min_x)
                    {
                       if (mw > *minw) *minw = mw;
                    }
-//               if (chosen_desc->text.min_y)
+                 if (chosen_desc->text.min_y)
                    {
                       if (mh > *minh) *minh = mh;
                    }
@@ -760,10 +760,12 @@ _edje_part_recalc_single_textblock(FLOAT_T sc,
             if (chosen_desc->text.max_x)
               {
                  if (mw > *maxw) *maxw = mw;
+                  if (*maxw < *minw) *maxw = *minw;
               }
             if (chosen_desc->text.max_y)
               {
                  if (mh > *maxw) *maxh = mh;
+                  if (*maxh < *minh) *maxh = *minh;
               }
          }
      }