diff --git a/mozilla/gfx/thebes/public/gfxFont.h b/mozilla/gfx/thebes/public/gfxFont.h index 86344d7e595..f683fc57bad 100644 --- a/mozilla/gfx/thebes/public/gfxFont.h +++ b/mozilla/gfx/thebes/public/gfxFont.h @@ -1218,7 +1218,7 @@ public: mCharacterGlyphs[aCharIndex] = aGlyph; } if (mDetailedGlyphs) { - mDetailedGlyphs[aCharIndex] = nsnull; + (mDetailedGlyphs.get())[aCharIndex] = nsnull; } } void SetGlyphs(PRUint32 aCharIndex, CompressedGlyph aGlyph, @@ -1238,7 +1238,7 @@ public: // and gfxFont::GetBoundingBox const CompressedGlyph *GetCharacterGlyphs() { return mCharacterGlyphs; } const DetailedGlyph *GetDetailedGlyphs(PRUint32 aCharIndex) { - return mDetailedGlyphs ? mDetailedGlyphs[aCharIndex].get() : nsnull; + return mDetailedGlyphs ? (mDetailedGlyphs.get())[aCharIndex].get() : nsnull; } PRBool HasDetailedGlyphs() { return mDetailedGlyphs.get() != nsnull; } PRUint32 CountMissingGlyphs();