diff --git a/gfx/thebes/public/gfxAtsuiFonts.h b/gfx/thebes/public/gfxAtsuiFonts.h index 1e4d8d088213..6c34b8fe0177 100644 --- a/gfx/thebes/public/gfxAtsuiFonts.h +++ b/gfx/thebes/public/gfxAtsuiFonts.h @@ -83,7 +83,7 @@ public: ATSUFontFallbacks *GetATSUFontFallbacks() { return &mFallbacks; } gfxAtsuiFont* GetFontAt(PRInt32 i) { - return NS_STATIC_CAST(gfxAtsuiFont*, NS_STATIC_CAST(gfxFont*, GetFontList()[i])); + return NS_STATIC_CAST(gfxAtsuiFont*, NS_STATIC_CAST(gfxFont*, mFonts[i])); } protected: