fix(msgbox): add missing lv_obj_class_init_obj

fixes #4226
This commit is contained in:
Gabor Kiss-Vamosi
2023-05-18 11:53:56 +02:00
parent 1caafc55dd
commit 6843c191b7

View File

@@ -106,6 +106,9 @@ lv_obj_t * lv_msgbox_create(lv_obj_t * parent, const char * title, const char *
}
mbox->content = lv_obj_class_create_obj(&lv_msgbox_content_class, obj);
LV_ASSERT_MALLOC(obj);
if(obj == NULL) return NULL;
lv_obj_class_init_obj(obj);
bool has_txt = txt && strlen(txt) > 0;
if(has_txt) {