From: tasn Date: Wed, 6 Jul 2011 07:32:14 +0000 (+0000) Subject: Evas textblock: Fixed weird cursor behavior with empty textblocks. X-Git-Tag: 2.0_alpha~240^2~364 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5af88f1f897f9bf7e7c035ca517c8ae489983bea;p=framework%2Fuifw%2Fevas.git Evas textblock: Fixed weird cursor behavior with empty textblocks. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@61067 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/canvas/evas_object_textblock.c b/src/lib/canvas/evas_object_textblock.c index 2fed505..77e866c 100644 --- a/src/lib/canvas/evas_object_textblock.c +++ b/src/lib/canvas/evas_object_textblock.c @@ -4045,7 +4045,11 @@ _layout(const Evas_Object *obj, int w, int h, int *w_ret, int *h_ret) EINA_INLIST_GET(c->paragraphs)->last; if (!c->par->logical_items) { - _layout_text_append(c, c->fmt, NULL, 0, 0, NULL); + Evas_Object_Textblock_Text_Item *ti; + ti = _layout_text_item_new(c, c->fmt); + ti->parent.text_node = o->text_nodes; + ti->parent.text_pos = 0; + _layout_text_add_logical_item(c, ti, NULL); } /* End of logical layout creation */