check for existence BEFORE getting geom

SVN revision: 76744
This commit is contained in:
Mike Blumenkrantz 2012-09-17 09:27:05 +00:00
parent 404d6b2ea5
commit 8bea4f9411
1 changed files with 3 additions and 2 deletions

View File

@ -2205,8 +2205,9 @@ _e_gadcon_client_drag_begin(E_Gadcon_Client *gcc, int x, int y)
{
o = gcc->client_class->func.icon((E_Gadcon_Client_Class *)gcc->client_class,
e_drag_evas_get(drag));
evas_object_geometry_get(o, NULL, NULL, &w, &h);
if (!o)
if (o)
evas_object_geometry_get(o, NULL, NULL, &w, &h);
else
{
/* FIXME: fallback icon for drag */
o = evas_object_rectangle_add(e_drag_evas_get(drag));