forked from enlightenment/efl
Evas textblock: Fixed an issue with item size calculation.
This caused some issues in some cases. Just switch continue with a goto to the end of the loop so we'll be able to calculate the sizes even when we don't need to format the format item. SVN revision: 57081
This commit is contained in:
parent
b48b7eb6ea
commit
4f597bf730
|
@ -2206,7 +2206,7 @@ _layout_line_finalize(Ctxt *c, Evas_Object_Textblock_Format *fmt)
|
|||
else
|
||||
{
|
||||
Evas_Object_Textblock_Format_Item *fi = _ITEM_FORMAT(it);
|
||||
if (!fi->formatme) continue;
|
||||
if (!fi->formatme) goto loop_advance;
|
||||
fi->ascent = c->maxascent;
|
||||
fi->descent = c->maxdescent;
|
||||
/* Adjust sizes according to current line height/scale */
|
||||
|
@ -2305,6 +2305,7 @@ _layout_line_finalize(Ctxt *c, Evas_Object_Textblock_Format *fmt)
|
|||
}
|
||||
}
|
||||
|
||||
loop_advance:
|
||||
it->x = x;
|
||||
x += it->adv;
|
||||
|
||||
|
|
Loading…
Reference in New Issue