# HG changeset patch # User Kenichi Handa # Date 1202346861 0 # Node ID ffe8367d4bdc35eeca05afbe4e179e2915f7f629 # Parent bd8c44318d8ad0ddbdc76cd09f199609d8247e0e (ftxfont_open): Don't set dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0. diff -r bd8c44318d8a -r ffe8367d4bdc src/ftxfont.c --- a/src/ftxfont.c Thu Feb 07 01:13:18 2008 +0000 +++ b/src/ftxfont.c Thu Feb 07 01:14:21 2008 +0000 @@ -351,6 +351,14 @@ dpyinfo->smallest_char_width = font->min_width, fonts_changed_p |= 1; } + if (fonts_changed_p) + { + if (dpyinfo->smallest_font_height == 0) + dpyinfo->smallest_font_height = 1; + if (dpyinfo->smallest_char_width == 0) + dpyinfo->smallest_char_width = 1; + } + return font; }