From: tasn Date: Tue, 5 Jun 2012 10:27:54 +0000 (+0000) Subject: Evas textblock: Fixed cursor position empty right aligned textblocks. X-Git-Tag: 2.0_alpha~50^2~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8a392486c3ce9fb3441d87b51a76ef833e10a88;p=framework%2Fuifw%2Fevas.git Evas textblock: Fixed cursor position empty right aligned textblocks. 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 --- diff --git a/src/lib/canvas/evas_object_textblock.c b/src/lib/canvas/evas_object_textblock.c index 21e816a..89b8905 100644 --- a/src/lib/canvas/evas_object_textblock.c +++ b/src/lib/canvas/evas_object_textblock.c @@ -4991,7 +4991,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 */ @@ -9288,6 +9290,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);