From: Kenichi Handa Date: Wed, 29 Sep 2010 00:52:03 +0000 (+0900) Subject: xfont.c (xfont_open): Fix setting of font->average_width from :avgwidth property... X-Git-Tag: emacs-pretest-23.2.90~94 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=18acb5ad4fcf3b8b00aacaca14cb5e0b24a854c4;p=emacs.git xfont.c (xfont_open): Fix setting of font->average_width from :avgwidth property (Bug#7123). --- diff --git a/src/ChangeLog b/src/ChangeLog index 435c09f0ff8..55636cc9f40 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-09-29 Kenichi Handa + + * xfont.c (xfont_open): Fix setting of font->average_width from + :avgwidth property (Bug#7123). + 2010-09-26 Jan Djärv * xgselect.c (xg_select): Clear file descriptors not set from diff --git a/src/xfont.c b/src/xfont.c index d8fe40eaa93..a676cd29c82 100644 --- a/src/xfont.c +++ b/src/xfont.c @@ -861,7 +861,7 @@ xfont_open (f, entity, pixel_size) val = Ffont_get (font_object, QCavgwidth); if (INTEGERP (val)) - font->average_width = XINT (val); + font->average_width = XINT (val) / 10; if (font->average_width < 0) font->average_width = - font->average_width; if (font->average_width == 0