From 6a3c7d2b95ede01f646d2402eaf61a3d25337b3a Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Thu, 11 Apr 2019 06:57:19 +0200 Subject: [PATCH] lv_list: fix lv_list_get_btn_next/prev --- src/lv_objx/lv_list.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lv_objx/lv_list.c b/src/lv_objx/lv_list.c index 3445be569..883fd7c14 100644 --- a/src/lv_objx/lv_list.c +++ b/src/lv_objx/lv_list.c @@ -429,7 +429,7 @@ lv_obj_t * lv_list_get_btn_label(const lv_obj_t * btn) lv_obj_t * label = lv_obj_get_child(btn, NULL); if(label == NULL) return NULL; - while(lv_list_is_list_label(label)) { + while(lv_list_is_list_label(label) == false) { label = lv_obj_get_child(btn, label); if(label == NULL) break; } @@ -448,7 +448,7 @@ lv_obj_t * lv_list_get_btn_img(const lv_obj_t * btn) lv_obj_t * img = lv_obj_get_child(btn, NULL); if(img == NULL) return NULL; - while(lv_list_is_list_img(img)) { + while(lv_list_is_list_img(img) == false) { img = lv_obj_get_child(btn, img); if(img == NULL) break; } @@ -476,7 +476,7 @@ lv_obj_t * lv_list_get_prev_btn(const lv_obj_t * list, lv_obj_t * prev_btn) btn = lv_obj_get_child(scrl, prev_btn); if(btn == NULL) return NULL; - while(lv_list_is_list_btn(btn)) { + while(lv_list_is_list_btn(btn) == false) { btn = lv_obj_get_child(scrl, btn); if(btn == NULL) break; } @@ -501,7 +501,7 @@ lv_obj_t * lv_list_get_next_btn(const lv_obj_t * list, lv_obj_t * prev_btn) btn = lv_obj_get_child_back(scrl, prev_btn); if(btn == NULL) return NULL; - while(lv_list_is_list_btn(btn)) { + while(lv_list_is_list_btn(btn) == false) { btn = lv_obj_get_child_back(scrl, btn); if(btn == NULL) break; }