elm_flip: small error handle fix

if we cannot create slice, we had better stop to change slice
This commit is contained in:
Ji-Youn Park 2015-06-15 22:38:12 +09:00
parent d8a5472f5b
commit c933ff6f50
1 changed files with 2 additions and 0 deletions

View File

@ -746,6 +746,7 @@ _state_update(Evas_Object *obj)
if (!sl)
{
sl = _slice_new(obj, front);
if (!sl) return 0;
sd->slices[nn] = sl;
}
_slice_xyz(sd, sl,
@ -766,6 +767,7 @@ _state_update(Evas_Object *obj)
if (!sl)
{
sl = _slice_new(obj, back);
if (!sl) return 0;
sd->slices2[nn] = sl;
}