From: raster Date: Mon, 24 Jan 2011 10:35:34 +0000 (+0000) Subject: fix test min AND max bool flags to work right again. :) X-Git-Tag: submit/2.0alpha-wayland/20121127.221958~901 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=725fb5f8586bd209445a5b3ed16d93646b2dd3c2;p=profile%2Fivi%2Fedje.git fix test min AND max bool flags to work right again. :) git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@56280 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/edje_calc.c b/src/lib/edje_calc.c index 712ba3a..05646a7 100644 --- a/src/lib/edje_calc.c +++ b/src/lib/edje_calc.c @@ -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; } } }