1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-21 06:53:01 +08:00

Error in lv_list_get_style function

SB and SCRL styles were mixed up. Let me now if it is ok.
This commit is contained in:
CrogST 2019-05-16 14:30:54 +03:00 committed by GitHub
parent c8d1413ece
commit 8273499a8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -591,10 +591,10 @@ lv_style_t * lv_list_get_style(const lv_obj_t * list, lv_list_style_t type)
style = lv_page_get_style(list, LV_PAGE_STYLE_BG); style = lv_page_get_style(list, LV_PAGE_STYLE_BG);
break; break;
case LV_LIST_STYLE_SCRL: case LV_LIST_STYLE_SCRL:
style = lv_page_get_style(list, LV_PAGE_STYLE_SB); style = lv_page_get_style(list, LV_PAGE_STYLE_SCRL);
break; break;
case LV_LIST_STYLE_SB: case LV_LIST_STYLE_SB:
style = lv_page_get_style(list, LV_PAGE_STYLE_SCRL); style = lv_page_get_style(list, LV_PAGE_STYLE_SB);
break; break;
case LV_LIST_STYLE_EDGE_FLASH: case LV_LIST_STYLE_EDGE_FLASH:
style = lv_page_get_style(list, LV_PAGE_STYLE_EDGE_FLASH); style = lv_page_get_style(list, LV_PAGE_STYLE_EDGE_FLASH);