mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
indev: minor fix to avide potential referring of NULL pointer
This commit is contained in:
parent
6640585827
commit
1dda6f5222
@ -1327,7 +1327,8 @@ static void indev_gesture(lv_indev_proc_t * proc)
|
||||
lv_obj_t * gesture_obj = proc->types.pointer.act_obj;
|
||||
|
||||
/*If gesture parent is active check recursively the drag_parent attribute*/
|
||||
while (lv_obj_get_gesture_parent(gesture_obj) != false && gesture_obj != NULL) {
|
||||
while (gesture_obj) {
|
||||
if(lv_obj_get_gesture_parent(gesture_obj) == false) break;
|
||||
gesture_obj = lv_obj_get_parent(gesture_obj);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user