Bug 524462. Fix startup crash in pref fonts with funky cmaps. r=jdaggett

This commit is contained in:
Bas Schouten 2009-10-30 16:41:13 -06:00
parent 9e35e4594c
commit 039ec98ac1

View File

@ -1323,7 +1323,9 @@ gfxWindowsFontGroup::FamilyListToArrayList(const nsString& aFamilies,
for (PRUint32 i = 0; i < len; ++i) {
const nsString& str = fonts[i];
nsRefPtr<FontEntry> fe = gfxWindowsPlatform::GetPlatform()->FindFontEntry(str, mStyle);
list->AppendElement(fe);
if (fe) {
list->AppendElement(fe);
}
}
}