fix(draw) border_draw crash is special case

This commit is contained in:
Gabor Kiss-Vamosi
2021-11-11 17:31:45 +01:00
parent 1167bdfd52
commit 075831a54c
2 changed files with 8 additions and 6 deletions

View File

@@ -667,10 +667,10 @@ static void theme_apply(lv_theme_t * th, lv_obj_t * obj)
#if LV_USE_CALENDAR
else if(lv_obj_check_type(lv_obj_get_parent(obj), &lv_calendar_class)) {
/*No style*/
return;
}
if(lv_obj_check_type(lv_obj_get_parent(obj), &lv_calendar_class)) {
/*No style*/
return;
}
#endif
lv_obj_add_style(obj, &styles->card, 0);