From 5326b54cedeb766b07bdba50563a3d0214d94511 Mon Sep 17 00:00:00 2001 From: cedric Date: Thu, 10 Jun 2010 15:37:50 +0000 Subject: [PATCH] * edje: prevent uninitialized data to spread. WARNING: I don't know why in the first it doesn't map correctly to an object. So if someone with more knowledge on this piece of code could give it a look. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@49613 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/edje_entry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/edje_entry.c b/src/lib/edje_entry.c index 17818e1..a75a993 100644 --- a/src/lib/edje_entry.c +++ b/src/lib/edje_entry.c @@ -854,7 +854,8 @@ _anchors_update(Evas_Textblock_Cursor *c __UNUSED__, Evas_Object *o, Entry *en) { Evas_Coord cx, cy, cw, ch; - evas_textblock_cursor_format_item_geometry_get(an->start, &cx, &cy, &cw, &ch); + if (!evas_textblock_cursor_format_item_geometry_get(an->start, &cx, &cy, &cw, &ch)) + continue ; evas_object_move(sel->obj, x + cx, y + cy); evas_object_resize(sel->obj, cw, ch); } -- 2.7.4