ctxpopup: Fixed crashed when sd->parent is null after 9c3d78b.

This commit is contained in:
Ryuan Choi 2013-04-07 22:47:48 +09:00 committed by Daniel Juyung Seo
parent 1cd410a59d
commit 7f4c7d2f72
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ _base_geometry_calc(Evas_Object *obj,
evas_object_geometry_get
(sd->parent, &hover_area.x, &hover_area.y, &hover_area.w,
&hover_area.h);
if (!strcmp(evas_object_type_get(sd->parent), "elm_win"))
if (sd->parent && !strcmp(evas_object_type_get(sd->parent), "elm_win"))
hover_area.x = hover_area.y = 0;
evas_object_geometry_get(obj, &pos.x, &pos.y, NULL, NULL);