mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Bug 1276829 - Don't add fonts to mFontsUsingSVGGlyphs if they did not actually have an SVG table. r=karlt
This commit is contained in:
parent
791610c158
commit
ecccb4c485
@ -383,7 +383,7 @@ gfxFontEntry::TryGetSVGData(gfxFont* aFont)
|
||||
mSVGGlyphs = MakeUnique<gfxSVGGlyphs>(svgTable, this);
|
||||
}
|
||||
|
||||
if (!mFontsUsingSVGGlyphs.Contains(aFont)) {
|
||||
if (mSVGGlyphs && !mFontsUsingSVGGlyphs.Contains(aFont)) {
|
||||
mFontsUsingSVGGlyphs.AppendElement(aFont);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user