Evas textblock: Fixed style padding calculation.

SVN revision: 61253
This commit is contained in:
Tom Hacohen 2011-07-11 16:39:45 +00:00
parent e4dcb66095
commit 9d6d6cedc9
1 changed files with 9 additions and 1 deletions

View File

@ -3105,7 +3105,15 @@ _layout_do_format(const Evas_Object *obj __UNUSED__, Ctxt *c,
}
}
evas_text_style_pad_get(fmt->style, style_pad_l, style_pad_r, style_pad_t, style_pad_b);
{
Evas_Coord pad_l, pad_r, pad_t, pad_b;
pad_l = pad_r = pad_t = pad_b = 0;
evas_text_style_pad_get(fmt->style, &pad_l, &pad_r, &pad_t, &pad_b);
if (pad_l > *style_pad_l) *style_pad_l = pad_l;
if (pad_r > *style_pad_r) *style_pad_r = pad_r;
if (pad_t > *style_pad_t) *style_pad_t = pad_t;
if (pad_b > *style_pad_b) *style_pad_b = pad_b;
}
if (fmt->underline2)
c->have_underline2 = 1;