Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(group) fix infinite loop
  • Loading branch information
kisvegabor committed Oct 13, 2021
1 parent 5799c10 commit bdce0bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/lv_group.c
Expand Up @@ -399,10 +399,12 @@ static void focus_next_core(lv_group_t * group, void * (*begin)(const lv_ll_t *)
*If any parent is hidden, the object is also hidden)*/
lv_obj_t * parent = *obj_next;
while(parent) {
if(lv_obj_has_flag(parent, LV_OBJ_FLAG_HIDDEN)) continue;
if(lv_obj_has_flag(parent, LV_OBJ_FLAG_HIDDEN)) break;
parent = lv_obj_get_parent(parent);
}

if(parent && lv_obj_has_flag(parent, LV_OBJ_FLAG_HIDDEN)) continue;

/*If we got her a good candidate is found*/
break;
}
Expand Down

0 comments on commit bdce0bc

Please sign in to comment.