diff --git a/lv_themes/lv_theme.c b/lv_themes/lv_theme.c index b27e035a71..4c76cb00ea 100644 --- a/lv_themes/lv_theme.c +++ b/lv_themes/lv_theme.c @@ -81,7 +81,7 @@ void lv_theme_set_current(lv_theme_t * th) } /*Copy group style modification callback functions*/ - current_theme.group = th->group; + memcpy(¤t_theme.group, &th->group, sizeof(th->group)); /*Let the object know their style might change*/ lv_obj_report_style_mod(NULL);