From 298e0610b4bf027fa76a52a3e6447904b74ca963 Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 6 Jun 2006 07:08:57 +0000 Subject: [PATCH] (mfont__lookup_fontset): Don't set *num to 1 if it is 0. --- src/fontset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fontset.c b/src/fontset.c index fee964b..119a459 100644 --- a/src/fontset.c +++ b/src/fontset.c @@ -775,7 +775,7 @@ mfont__lookup_fontset (MRealizedFontset *realized, MGlyph *g, int *num, g, num, size))) return rfont; - if (per_lang) + if (per_lang && *num > 1) *num = 1; if (language == Mt) { @@ -795,7 +795,7 @@ mfont__lookup_fontset (MRealizedFontset *realized, MGlyph *g, int *num, g, num, size))) return rfont; - if (per_lang) + if (per_lang && *num > 1) *num = 1; /* Then try the above (3) */ MPLIST_DO (plist, per_script) -- 1.7.10.4