1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-02-04 07:13:00 +08:00

fix(group): be sure obj is removed from its current group in lv_group_add_obj

fixes #3593
This commit is contained in:
Gabor Kiss-Vamosi 2022-08-19 12:02:06 +02:00
parent a0515ba30d
commit 5156ee058d

View File

@ -113,6 +113,9 @@ void lv_group_add_obj(lv_group_t * group, lv_obj_t * obj)
LV_LOG_TRACE("begin");
/*Be sure the object is removed from its current group*/
lv_group_remove_obj(obj);
/*Do not add the object twice*/
lv_obj_t ** obj_i;
_LV_LL_READ(&group->obj_ll, obj_i) {