mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-28 22:30:49 +08:00
bugfix: return int not pointer
This commit is contained in:
+1
-1
@@ -280,7 +280,7 @@ uint16_t lv_img_get_src_id(lv_obj_t * img)
|
|||||||
return ext->lang_txt_id;
|
return ext->lang_txt_id;
|
||||||
#else
|
#else
|
||||||
LV_LOG_WARN("lv_img_get_text_lang: multiple languages are not enabled. See lv_conf.h USE_LV_MULTI_LANG ")
|
LV_LOG_WARN("lv_img_get_text_lang: multiple languages are not enabled. See lv_conf.h USE_LV_MULTI_LANG ")
|
||||||
return NULL;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -379,7 +379,7 @@ uint16_t lv_label_get_text_id(lv_obj_t * label)
|
|||||||
return ext->lang_txt_id;
|
return ext->lang_txt_id;
|
||||||
#else
|
#else
|
||||||
LV_LOG_WARN("lv_label_get_text_multi: multiple languages are not enabled. See lv_conf.h USE_LV_MULTI_LANG ")
|
LV_LOG_WARN("lv_label_get_text_multi: multiple languages are not enabled. See lv_conf.h USE_LV_MULTI_LANG ")
|
||||||
return NULL;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user