From 7d74f96cce4d5cbffd467dceaa10c2c092a2d86a Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 9 Nov 2007 10:13:43 +0000 Subject: [PATCH] (mface__realize): Fix previous change. --- src/face.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/face.c b/src/face.c index d78e623..983228c 100644 --- a/src/face.c +++ b/src/face.c @@ -738,6 +738,7 @@ mface__realize (MFrame *frame, MFace **faces, int num, int size, MFont *font) = mfont__encode_char (frame, (MFont *) rfont, NULL, ' '); if (work_gstring.glyphs[0].g.code != MCHAR_INVALID_CODE) { + work_gstring.glyphs[0].g.measured = 0; mfont__get_metric (&work_gstring, 0, 1); rface->space_width = work_gstring.glyphs[0].g.xadv; } @@ -749,10 +750,9 @@ mface__realize (MFrame *frame, MFace **faces, int num, int size, MFont *font) { work_gstring.glyphs[0].g.code = mfont__encode_char (frame, (MFont *) rfont, NULL, 'x'); - work_gstring.glyphs[0].g.encoded = 1; - work_gstring.glyphs[0].g.measured = 0; if (work_gstring.glyphs[0].g.code != MCHAR_INVALID_CODE) { + work_gstring.glyphs[0].g.measured = 0; mfont__get_metric (&work_gstring, 0, 1); rface->average_width = work_gstring.glyphs[0].g.xadv; } -- 1.7.10.4