Bug 1276829 - Don't add fonts to mFontsUsingSVGGlyphs if they did not actually have an SVG table. r=karlt

This commit is contained in:
Jonathan Kew 2016-07-22 06:54:12 +01:00
parent 791610c158
commit ecccb4c485

View File

@ -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);
}