fix(style) rename path_cb to to path_xcb in lv_style_transition_dsc_t

This way the MicroPython won't allow manually setting this field.
And it can't be set manually becasue the user data needs to be set too.
So lv_style_transition_dsc_init() should be used to initialize the fields of lv_style_transition_dsc_t
This commit is contained in:
Gabor Kiss-Vamosi
2021-04-21 09:02:39 +02:00
parent 078b15da55
commit 663f8c2672
3 changed files with 3 additions and 3 deletions

View File

@@ -1009,7 +1009,7 @@ static void lv_obj_set_state(lv_obj_t * obj, lv_state_t new_state)
if(t == tsi) {
ts[tsi].time = tr->time;
ts[tsi].delay = tr->delay;
ts[tsi].path_cb = tr->path_cb;
ts[tsi].path_cb = tr->path_xcb;
ts[tsi].prop = tr->props[j];
#if LV_USE_USER_DATA
ts[tsi].user_data = tr->user_data;