From b623eabb0abf8528a9628e008dfa8ed2b8c8e532 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Sat, 27 Apr 2019 10:58:34 +0200 Subject: [PATCH] font: ignore glyphs with NULL dsc --- src/lv_draw/lv_draw_basic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lv_draw/lv_draw_basic.c b/src/lv_draw/lv_draw_basic.c index 5a911d2a6..8ec2b44e2 100644 --- a/src/lv_draw/lv_draw_basic.c +++ b/src/lv_draw/lv_draw_basic.c @@ -245,7 +245,7 @@ void lv_draw_letter(const lv_point_t * pos_p, const lv_area_t * mask_p, const lv } const lv_font_glyph_dsc_t * g = lv_font_get_glyph_dsc(font_p, letter); - + if(g == NULL) return; lv_coord_t pos_x = pos_p->x + g->ofs_x; lv_coord_t pos_y = pos_p->y + g->ofs_y;