Skip to content

Commit

Permalink
fix: add assert in lv_obj_get_style_prop (#4405)
Browse files Browse the repository at this point in the history
Co-authored-by: Igor Parfenov <i.parfenov@omp.ru>
  • Loading branch information
ParfenovIgor and Igor Parfenov committed Jul 25, 2023
1 parent dbde799 commit 469b66e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/lv_obj_style.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ void lv_obj_enable_style_refresh(bool en)

lv_style_value_t lv_obj_get_style_prop(const lv_obj_t * obj, lv_part_t part, lv_style_prop_t prop)
{
LV_ASSERT_NULL(obj)

lv_style_value_t value_act = { .ptr = NULL };
bool inheritable = lv_style_prop_has_flag(prop, LV_STYLE_PROP_FLAG_INHERITABLE);
lv_style_res_t found = LV_STYLE_RES_NOT_FOUND;
Expand Down

0 comments on commit 469b66e

Please sign in to comment.