1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

Reset number of options when clearing static options

This commit is contained in:
xennex22 2020-03-11 03:36:25 -07:00 committed by GitHub
parent bcbcb6f31d
commit d5ab09cf7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,6 +266,7 @@ void lv_dropdown_add_option(lv_obj_t * ddlist, const char * option, uint16_t pos
if(ext->static_txt != 0) {
ext->options = NULL;
ext->static_txt = 0;
ext->option_cnt = 0;
}
/*Allocate space for the new option*/