diff options
Diffstat (limited to 'vcl/win/gdi/salfont.cxx')
-rw-r--r-- | vcl/win/gdi/salfont.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/win/gdi/salfont.cxx b/vcl/win/gdi/salfont.cxx index be4af132db1d..be55c9df0b40 100644 --- a/vcl/win/gdi/salfont.cxx +++ b/vcl/win/gdi/salfont.cxx @@ -1546,6 +1546,7 @@ public: SFErrCodes open(void const * pBuffer, sal_uInt32 nLen, sal_uInt32 nFaceNum); TrueTypeFont * get() const { return m_pFont; } + TrueTypeFont* operator->() { return m_pFont; } private: TrueTypeFont * m_pFont; @@ -1748,7 +1749,7 @@ void WinSalGraphics::GetGlyphWidths( const PhysicalFontFace* pFont, if( nRC != SFErrCodes::Ok ) return; - int nGlyphs = GetTTGlyphCount( aSftTTF.get() ); + int nGlyphs = aSftTTF->glyphCount(); if( nGlyphs > 0 ) { rWidths.resize(nGlyphs); |