return immediately when setting a null gadget style if current style is null

This commit is contained in:
Mike Blumenkrantz 2017-07-28 13:49:31 -04:00
parent a35844724e
commit 689a78533c
1 changed files with 1 additions and 0 deletions

View File

@ -1531,6 +1531,7 @@ e_gadget_util_layout_style_init(Evas_Object *g, Evas_Object *style)
EINA_SAFETY_ON_NULL_RETURN_VAL(zgc, NULL);
prev = zgc->style.obj;
if ((!prev) && (!style)) return NULL;
zgc->style.obj = style;
if (style)
{