From: cedric Date: Thu, 10 Jun 2010 15:37:50 +0000 (+0000) Subject: * edje: prevent uninitialized data to spread. X-Git-Tag: 2.0_alpha~163^2~505 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fbf8aa4f6f993ea3e644ddbcb7b5ceeecfe939f1;p=framework%2Fuifw%2Fedje.git * 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: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@49613 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- 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); }