mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
fix(msgbox): fix typo
This commit is contained in:
parent
6843c191b7
commit
6a89bd2d74
@ -106,9 +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);
|
||||
LV_ASSERT_MALLOC(mbox->content);
|
||||
if(mbox->content == NULL) return NULL;
|
||||
lv_obj_class_init_obj(mbox->content);
|
||||
|
||||
bool has_txt = txt && strlen(txt) > 0;
|
||||
if(has_txt) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user