Evas textblock: Fixed a major bug. Forgot recreating a layout paragraph.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 7 Apr 2011 13:40:42 +0000 (13:40 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 7 Apr 2011 13:40:42 +0000 (13:40 +0000)
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

index 47e9992..a4556e1 100644 (file)
@@ -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