From: handa Date: Tue, 6 Jun 2006 07:08:57 +0000 (+0000) Subject: (mfont__lookup_fontset): Don't set *num to 1 if it is 0. X-Git-Tag: REL-1-3-4~178 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=298e0610b4bf027fa76a52a3e6447904b74ca963;p=m17n%2Fm17n-lib.git (mfont__lookup_fontset): Don't set *num to 1 if it is 0. --- 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)