Errata to bug 116030. Fix in the detection of the language group of a character to pick better fallback fonts, b=184848, r=smontagu, sr=bzbarsky

This commit is contained in:
rbs%maths.uq.edu.au 2003-04-17 21:16:25 +00:00
Родитель eed22617af
Коммит 466cdcd0f9
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -3260,7 +3260,7 @@ nsFontMetricsWin::FindPrefFont(HDC aDC, PRUint32 aChar)
// figure out which one comes first. As a final fallback, unicode preference is always tried.
PRUint32 unicodeRange = FindCharUnicodeRange(aChar);
if (unicodeRange > kRangeSpecificItemNum) {
if (unicodeRange < kRangeSpecificItemNum) {
// a single language is identified
AppendGenericFontFromPref(font.name, LangGroupFromUnicodeRange(unicodeRange),
NS_ConvertUCS2toUTF8(mGeneric).get());