Evas textblock: Fixed "high" text size adjustments for multiple paragraphs.

This commit is contained in:
Tom Hacohen 2013-02-28 16:48:09 +00:00
parent 5a55e5e56c
commit 5dc2d7c126
1 changed files with 1 additions and 1 deletions

View File

@ -3198,6 +3198,7 @@ _layout_line_finalize(Ctxt *c, Evas_Object_Textblock_Format *fmt)
Evas_Object_Textblock_Item *it;
Evas_Coord x = 0;
c->position = TEXTBLOCK_POSITION_ELSE;
/* If there are no text items yet, calc ascent/descent
* according to the current format. */
if (c->maxascent + c->maxdescent == 0)
@ -3273,7 +3274,6 @@ loop_advance:
static void
_layout_line_advance(Ctxt *c, Evas_Object_Textblock_Format *fmt)
{
c->position = TEXTBLOCK_POSITION_ELSE;
_layout_line_finalize(c, fmt);
_layout_line_new(c, fmt);
}