Evas textblock: Fixed issue with _textblock_clear and cursors.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 18 Jun 2012 13:44:26 +0000 (13:44 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 18 Jun 2012 13:44:26 +0000 (13:44 +0000)
Now it properly sets the remaining cursors.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@72403 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index 5c2d3ca..914a815 100644 (file)
@@ -9101,6 +9101,12 @@ evas_object_textblock_clear(Evas_Object *obj)
        cur->pos = 0;
 
      }
+
+   /* Force recreation of everything for textblock.
+    * FIXME: We have the same thing in other places, merge it... */
+   evas_textblock_cursor_paragraph_first(o->cursor);
+   evas_textblock_cursor_text_append(o->cursor, "");
+
    _evas_textblock_changed(o, obj);
 }