Merge branch 'master' of https://github.com/littlevgl/lvgl
This commit is contained in:
@@ -145,7 +145,7 @@ void lv_group_remove_obj(lv_obj_t * obj)
|
|||||||
LV_LOG_TRACE("begin");
|
LV_LOG_TRACE("begin");
|
||||||
|
|
||||||
/*Focus on the next object*/
|
/*Focus on the next object*/
|
||||||
if(*g->obj_focus == obj) {
|
if(g->obj_focus && *g->obj_focus == obj) {
|
||||||
if(g->frozen) g->frozen = 0;
|
if(g->frozen) g->frozen = 0;
|
||||||
|
|
||||||
/*If this is the only object in the group then focus to nothing.*/
|
/*If this is the only object in the group then focus to nothing.*/
|
||||||
@@ -161,7 +161,7 @@ void lv_group_remove_obj(lv_obj_t * obj)
|
|||||||
/*If the focuses object is still the same then it was the only object in the group but it will
|
/*If the focuses object is still the same then it was the only object in the group but it will
|
||||||
*be deleted. Set the `obj_focus` to NULL to get back to the initial state of the group with
|
*be deleted. Set the `obj_focus` to NULL to get back to the initial state of the group with
|
||||||
*zero objects*/
|
*zero objects*/
|
||||||
if(*g->obj_focus == obj) {
|
if(g->obj_focus && *g->obj_focus == obj) {
|
||||||
g->obj_focus = NULL;
|
g->obj_focus = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user