зеркало из https://github.com/mozilla/pjs.git
Bug 205310 - some PNG files displayed with a garbage mask.
r=biesi, sr=blizzard, a=chofmann
This commit is contained in:
Родитель
afe89a54d7
Коммит
b608c05056
|
@ -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)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче