Revert "Evas textblock: Fixed a major bug. Forgot recreating a layout paragraph."
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 7 Apr 2011 14:01:31 +0000 (14:01 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 7 Apr 2011 14:01:31 +0000 (14:01 +0000)
Apparently it was a mistake and I did handle everything correctly.

This reverts commit 58454.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@58455 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index a4556e1..47e9992 100644 (file)
@@ -3555,8 +3555,11 @@ _layout(const Evas_Object *obj, int calc_only, int w, int h, int *w_ret, int *h_
                        continue;
                     }
                }
-             /* If it's a new paragraph, just add it. */
-             _layout_paragraph_new(c, n, EINA_FALSE);
+             else
+               {
+                  /* 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