mirror of
https://github.com/lvgl/lvgl.git
synced 2024-11-29 04:33:52 +08:00
fix(style): add missing invalidation in lv_obj_remove_local_style_prop
fixes #3581
This commit is contained in:
parent
1de64ade88
commit
3a67cb62da
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user