Fix setting local style property multiple times

Realted to https://forum.lvgl.io/t/how-to-change-button-object-color-on-demand/2922/2
This commit is contained in:
Gabor Kiss-Vamosi 2020-08-08 16:21:51 +02:00
parent 81caeaa725
commit 90be42c493
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@
- Rename `lv_chart_clear_serie` to `lv_chart_clear_series` and `lv_obj_align_origo` to `lv_obj_align_mid`
- Add linemeter's mirror feature again
- Fix text decor (udnerline strikethrough) with older versions of font converter
- Fix setting local style property multiple times
## v7.3.0 (04.08.2020)

View File

@ -1104,7 +1104,7 @@ static lv_style_t * get_alloc_local_style(lv_style_list_t * list)
{
LV_ASSERT_STYLE_LIST(list);
if(list->has_local) return lv_style_list_get_style(list, 0);
if(list->has_local) return lv_style_list_get_style(list, list->has_trans ? 1 : 0);
lv_style_t * local_style = lv_mem_alloc(sizeof(lv_style_t));
LV_ASSERT_MEM(local_style);