elm_flip: small error handle fix
if we cannot create slice, we had better stop to change slice
This commit is contained in:
parent
d8a5472f5b
commit
c933ff6f50
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue