fix(style): fix style caching in lv_obj_report_style_change

This commit is contained in:
Gabor Kiss-Vamosi 2023-10-05 10:49:32 +02:00
parent 066c7a1864
commit 644c1c46f3

View File

@ -842,6 +842,7 @@ static void report_style_change_core(void * style, lv_obj_t * obj)
uint32_t i;
for(i = 0; i < obj->style_cnt; i++) {
if(style == NULL || obj->styles[i].style == style) {
full_cache_refresh(obj, lv_obj_style_get_selector_part(obj->styles[i].selector));
lv_obj_refresh_style(obj, LV_PART_ANY, LV_STYLE_PROP_ANY);
break;
}