From 7f4c7d2f724e3d6c6bd2b3a3dd253fc73b54ad1a Mon Sep 17 00:00:00 2001 From: Ryuan Choi Date: Sun, 7 Apr 2013 22:47:48 +0900 Subject: [PATCH] ctxpopup: Fixed crashed when sd->parent is null after 9c3d78b. --- legacy/elementary/src/lib/elc_ctxpopup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/elc_ctxpopup.c b/legacy/elementary/src/lib/elc_ctxpopup.c index 2662a01..5f7dcbe 100644 --- a/legacy/elementary/src/lib/elc_ctxpopup.c +++ b/legacy/elementary/src/lib/elc_ctxpopup.c @@ -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); -- 2.7.4