mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
fix Qt and GTK bustage in gfxFT2Fonts from bug 493280, r=jfkthame
This commit is contained in:
parent
ecc950211c
commit
ad353a7959
@ -377,8 +377,8 @@ gfxPlatformGtk::UpdateFontList()
|
||||
gPlatformFonts->Put(key, ff);
|
||||
}
|
||||
|
||||
nsRefPtr<FontEntry> fe = new FontEntry(ff->mName);
|
||||
ff->mFaces.AppendElement(fe);
|
||||
FontEntry *fe = new FontEntry(ff->mName);
|
||||
ff->AddFontEntry(fe);
|
||||
|
||||
if (FcPatternGetString(fs->fonts[i], FC_FILE, 0, (FcChar8 **) &str) == FcResultMatch) {
|
||||
fe->mFilename = nsDependentCString(str);
|
||||
|
@ -171,8 +171,8 @@ gfxQtPlatform::UpdateFontList()
|
||||
gPlatformFonts->Put(key, ff);
|
||||
}
|
||||
|
||||
nsRefPtr<FontEntry> fe = new FontEntry(ff->Name());
|
||||
ff->mFaces.AppendElement(fe);
|
||||
FontEntry *fe = new FontEntry(ff->Name());
|
||||
ff->AddFontEntry(fe);
|
||||
|
||||
if (FcPatternGetString(fs->fonts[i], FC_FILE, 0, (FcChar8 **) &str) == FcResultMatch) {
|
||||
fe->mFilename = nsDependentCString(str);
|
||||
|
Loading…
Reference in New Issue
Block a user