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 d216cce6eb
commit 4ce460525c
1 changed files with 1 additions and 0 deletions

View File

@ -1826,6 +1826,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)
{