Bug 205310 - some PNG files displayed with a garbage mask.

r=biesi, sr=blizzard, a=chofmann
This commit is contained in:
tor%cs.brown.edu 2004-01-06 16:50:13 +00:00
Родитель afe89a54d7
Коммит b608c05056
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -1141,7 +1141,7 @@ nsFontMetricsXft::SetupFCPattern(void)
// If there's a generic add a pref for the generic if there's one // If there's a generic add a pref for the generic if there's one
// set. // set.
if (mGenericFont) { if (mGenericFont && (mFontList.Count()==1)) {
nsCString name; nsCString name;
name += "font.name."; name += "font.name.";
name += mGenericFont->get(); name += mGenericFont->get();
@ -1176,7 +1176,7 @@ nsFontMetricsXft::SetupFCPattern(void)
} }
// Add the generic if there is one. // Add the generic if there is one.
if (mGenericFont) if (mGenericFont && (mFontList.Count()==1))
AddFFRE(mPattern, mGenericFont, PR_FALSE); AddFFRE(mPattern, mGenericFont, PR_FALSE);
if (PR_LOG_TEST(gXftFontLoad, PR_LOG_DEBUG)) { if (PR_LOG_TEST(gXftFontLoad, PR_LOG_DEBUG)) {