From: Kenichi Handa Date: Thu, 7 Feb 2008 01:14:21 +0000 (+0000) Subject: (ftxfont_open): Don't set X-Git-Tag: emacs-pretest-23.0.90~8126 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=562af9bcf562e96364b8c56dac475bdb26d833a1;p=emacs.git (ftxfont_open): Don't set dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0. --- diff --git a/src/ftxfont.c b/src/ftxfont.c index 49222fdb514..da56ef0faee 100644 --- a/src/ftxfont.c +++ b/src/ftxfont.c @@ -351,6 +351,14 @@ ftxfont_open (f, entity, pixel_size) 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; }