forked from enlightenment/enlightenment
return immediately when setting a null gadget style if current style is null
This commit is contained in:
parent
d216cce6eb
commit
4ce460525c
|
@ -1826,6 +1826,7 @@ e_gadget_util_layout_style_init(Evas_Object *g, Evas_Object *style)
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(zgc, NULL);
|
EINA_SAFETY_ON_NULL_RETURN_VAL(zgc, NULL);
|
||||||
|
|
||||||
prev = zgc->style.obj;
|
prev = zgc->style.obj;
|
||||||
|
if ((!prev) && (!style)) return NULL;
|
||||||
zgc->style.obj = style;
|
zgc->style.obj = style;
|
||||||
if (style)
|
if (style)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue