edje swallow resize handling

this fixes some deadcode in CID 1039646 that suggests we should do a
check for rp->typedata.swallow first before we go using it.
This commit is contained in:
Carsten Haitzler 2014-08-14 19:36:40 +09:00
parent bc6eb8fcec
commit 4771d25e9f
1 changed files with 2 additions and 2 deletions

View File

@ -5008,11 +5008,11 @@ _edje_object_part_swallow_image_resize_cb(void *data, Evas *e EINA_UNUSED, Evas_
Evas_Map *map;
if (!rp->chosen_description->map.on) return;
if (rp->type != EDJE_RP_TYPE_SWALLOW) return;
if (!rp->typedata.swallow) return;
if (evas_object_image_source_get(rp->typedata.swallow->swallowed_object))
return;
if ((rp->type != EDJE_RP_TYPE_SWALLOW) ||
(!rp->typedata.swallow)) return;
map = (Evas_Map *)evas_object_map_get(rp->typedata.swallow->swallowed_object);
if (!map) return;