1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

Merge branch 'master' of https://github.com/jianjunxia/lvgl into jianjunxia-master

This commit is contained in:
Gabor Kiss-Vamosi 2021-04-26 15:31:52 +02:00
commit 668960e3c0

View File

@ -124,7 +124,8 @@ LV_ATTRIBUTE_FAST_MEM void lv_draw_label(const lv_area_t * coords, const lv_area
int32_t w; int32_t w;
/*No need to waste processor time if string is empty*/ /*No need to waste processor time if string is empty*/
if(txt[0] == '\0') return; if (txt == NULL || txt[0] == '\0')
return;
lv_area_t clipped_area; lv_area_t clipped_area;
bool clip_ok = _lv_area_intersect(&clipped_area, coords, mask); bool clip_ok = _lv_area_intersect(&clipped_area, coords, mask);