From 2277a2ad0889d3ff8208ebb916c4b16768bd3713 Mon Sep 17 00:00:00 2001 From: tasn Date: Thu, 7 Apr 2011 13:40:42 +0000 Subject: [PATCH] Evas textblock: Fixed a major bug. Forgot recreating a layout paragraph. We should create a layout paragraph when it's a new paragraph and when we removed the previous one that was there because we wanted to remake it. Forgot adding a paragraph in the second case. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@58454 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_object_textblock.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/lib/canvas/evas_object_textblock.c b/src/lib/canvas/evas_object_textblock.c index 47e9992..a4556e1 100644 --- a/src/lib/canvas/evas_object_textblock.c +++ b/src/lib/canvas/evas_object_textblock.c @@ -3555,11 +3555,8 @@ _layout(const Evas_Object *obj, int calc_only, int w, int h, int *w_ret, int *h_ continue; } } - else - { - /* If it's a new paragraph, just add it. */ - _layout_paragraph_new(c, n, EINA_FALSE); - } + /* If it's a new paragraph, just add it. */ + _layout_paragraph_new(c, n, EINA_FALSE); /* For each text node to thorugh all of it's format nodes * append text from the start to the offset of the next format -- 2.7.4