aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-02-28 16:48:09 +0000
committerTom Hacohen <tom@stosb.com>2013-02-28 16:48:09 +0000
commit5dc2d7c126b8e353e016a4687686d545648086ae (patch)
tree7516a54fecbb1ae6043fd071766d3e0b41b1ff0c
parent5a55e5e56cb3b71f2d1177a04866d71e491d719b (diff)
downloadefl-5dc2d7c126b8e353e016a4687686d545648086ae.tar.gz
efl-5dc2d7c126b8e353e016a4687686d545648086ae.tar.xz
efl-5dc2d7c126b8e353e016a4687686d545648086ae.zip
Evas textblock: Fixed "high" text size adjustments for multiple paragraphs.
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c
index 31d55b0f9..5ff691a48 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -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);
}