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:
Tom Hacohen 2011-02-16 09:43:57 +00:00
parent b48b7eb6ea
commit 4f597bf730
1 changed files with 2 additions and 1 deletions

View File

@ -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;