Evas textblock: Fixed a bug when the last paragraph is empty.
authorTom Hacohen <tom@stosb.com>
Tue, 19 Jul 2011 14:32:54 +0000 (14:32 +0000)
committerTom Hacohen <tom@stosb.com>
Tue, 19 Jul 2011 14:32:54 +0000 (14:32 +0000)
SVN revision: 61504

legacy/evas/src/lib/canvas/evas_object_textblock.c

index a3bf494..34ec794 100644 (file)
@@ -4044,7 +4044,7 @@ _layout(const Evas_Object *obj, int w, int h, int *w_ret, int *h_ret)
      {
         Evas_Object_Textblock_Text_Item *ti;
         ti = _layout_text_item_new(c, c->fmt);
-        ti->parent.text_node = o->text_nodes;
+        ti->parent.text_node = c->par->text_node;
         ti->parent.text_pos = 0;
         _layout_text_add_logical_item(c, ti, NULL);
      }