From b8a5ad2d73e50948a198441981d493fad2bf144b Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Fri, 22 Feb 2019 19:11:26 +0800 Subject: [PATCH] return NULL when not matched devfont --- src/font/devfont.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/font/devfont.c b/src/font/devfont.c index 96ac66cd..6315f54e 100644 --- a/src/font/devfont.c +++ b/src/font/devfont.c @@ -252,12 +252,9 @@ DEVFONT* font_GetMatchedSBDevFont (LOGFONT* log_font) else { /*sbc logfont --- sbc devfont*/ matched_devfont = get_matched_devfont (log_font, sb_dev_font_head, - nr_sb_dev_fonts,log_font->charset); + nr_sb_dev_fonts, log_font->charset); } - if (!matched_devfont && g_SysLogFont [0]) - matched_devfont = g_SysLogFont [0]->sbc_devfont; - return matched_devfont; }