From a9e8980899accd7c757458ad5335717031b462ac Mon Sep 17 00:00:00 2001 From: tasn Date: Sun, 30 Jan 2011 10:45:06 +0000 Subject: [PATCH] Evas textblock: Fixed paragraph width to also take in-paragraph line indentation into account. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@56535 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_object_textblock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/canvas/evas_object_textblock.c b/src/lib/canvas/evas_object_textblock.c index fc38298..68c3d3a 100644 --- a/src/lib/canvas/evas_object_textblock.c +++ b/src/lib/canvas/evas_object_textblock.c @@ -2344,8 +2344,8 @@ _layout_line_finalize(Ctxt *c, Evas_Object_Textblock_Format *fmt) c->wmax = c->par->x + c->ln->x + c->ln->w + c->marginl + c->marginr - c->o->style_pad.l; } c->par->h = c->ln->y + c->ln->h; - if (c->ln->w > c->par->w) - c->par->w = c->ln->w; + if (c->ln->w + c->ln->x > c->par->w) + c->par->w = c->ln->x + c->ln->w; } /** -- 2.7.4