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
Родитель 18d8959682
Коммит 93a7afcbc6
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
// set.
if (mGenericFont) {
if (mGenericFont && (mFontList.Count()==1)) {
nsCString name;
name += "font.name.";
name += mGenericFont->get();
@ -1176,7 +1176,7 @@ nsFontMetricsXft::SetupFCPattern(void)
}
// Add the generic if there is one.
if (mGenericFont)
if (mGenericFont && (mFontList.Count()==1))
AddFFRE(mPattern, mGenericFont, PR_FALSE);
if (PR_LOG_TEST(gXftFontLoad, PR_LOG_DEBUG)) {