return NULL when not matched devfont

This commit is contained in:
Vincent Wei
2019-02-22 19:11:26 +08:00
parent 39b8c88d1b
commit b8a5ad2d73
+1 -4
View File
@@ -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;
}