Evas textblock: Fixed cursor position empty right aligned textblocks.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 5 Jun 2012 10:27:54 +0000 (10:27 +0000)
committerWooHyun Jung <wh0705.jung@samsung.com>
Fri, 8 Jun 2012 11:06:37 +0000 (20:06 +0900)
Thanks to WooHyun for reporting this.

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

src/lib/canvas/evas_object_textblock.c

index 578e1d0..37a4228 100644 (file)
@@ -4988,7 +4988,9 @@ evas_object_textblock_text_markup_set(Evas_Object *obj, const char *text)
           }
         return;
      }
+
    evas_textblock_cursor_paragraph_first(o->cursor);
+   evas_textblock_cursor_text_append(o->cursor, "");
 
    evas_object_textblock_text_markup_prepend(o->cursor, text);
    /* Point all the cursors to the starrt */
@@ -9293,6 +9295,8 @@ evas_object_textblock_init(Evas_Object *obj)
 
    o = (Evas_Object_Textblock *)(obj->object_data);
    o->cursor->obj = obj;
+   evas_object_textblock_text_markup_set(obj, "");
+
    o->legacy_newline = EINA_TRUE;
    evas_object_event_callback_priority_add(obj, EVAS_CALLBACK_RESIZE, -1000,
          _workaround_object_coords_recalc, NULL);