group: fix in lv_group_remove_obj to handle deleting hidden obejcts correctly

This commit is contained in:
Gabor Kiss-Vamosi
2020-11-02 12:24:12 +01:00
parent a2b4bbcd2a
commit 6d92d084f7

View File

@@ -149,7 +149,6 @@ void lv_group_remove_obj(lv_obj_t * obj)
{
lv_group_t * g = obj->group_p;
if(g == NULL) return;
if(g->obj_focus == NULL) return; /*Just to be sure (Not possible if there is at least one object in the group)*/
/*Focus on the next object*/
if(*g->obj_focus == obj) {