fix(style): add missing invalidation in lv_obj_remove_local_style_prop

fixes #3581
This commit is contained in:
Gabor Kiss-Vamosi 2022-08-17 12:51:36 +02:00
parent 1de64ade88
commit 3a67cb62da

View File

@ -315,7 +315,12 @@ bool lv_obj_remove_local_style_prop(lv_obj_t * obj, lv_style_prop_t prop, lv_sty
/*The style is not found*/
if(i == obj->style_cnt) return false;
return lv_style_remove_prop((lv_style_t *)obj->styles[i].style, prop);
lv_res_t res = lv_style_remove_prop((lv_style_t *)obj->styles[i].style, prop);
if(res == LV_RES_OK) {
lv_obj_refresh_style(obj, selector, prop);
}
return res;
}
void _lv_obj_style_create_transition(lv_obj_t * obj, lv_part_t part, lv_state_t prev_state, lv_state_t new_state,