summaryrefslogtreecommitdiff
path: root/vcl/aqua/source
diff options
context:
space:
mode:
authorHerbert Duerr [hdu] <herbert.duerr@oracle.com>2010-11-22 15:46:16 +0100
committerHerbert Duerr [hdu] <herbert.duerr@oracle.com>2010-11-22 15:46:16 +0100
commit21d610c5dc0fcf7adf08d045af1d90eeb5b1b53e (patch)
treeaa0dd99ae3ba5205f88b53b950912ceb75aefcd2 /vcl/aqua/source
parent7d914d89219cca3c179951e5c8516726712c9ac5 (diff)
#i115718# fix IFCM refcounting while subsetting fonts on OSX
Diffstat (limited to 'vcl/aqua/source')
-rw-r--r--vcl/aqua/source/gdi/salgdi.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/aqua/source/gdi/salgdi.cxx b/vcl/aqua/source/gdi/salgdi.cxx
index e1daf649f6da..070c0753637d 100644
--- a/vcl/aqua/source/gdi/salgdi.cxx
+++ b/vcl/aqua/source/gdi/salgdi.cxx
@@ -2356,8 +2356,10 @@ void AquaSalGraphics::GetGlyphWidths( const ImplFontData* pFontData, bool bVerti
const ImplFontCharMap* pMap = mpMacFontData->GetImplFontCharMap();
DBG_ASSERT( pMap && pMap->GetCharCount(), "no charmap" );
+ pMap->AddReference(); // TODO: add and use RAII object instead
// get unicode<->glyph encoding
+ // TODO? avoid sft mapping by using the pMap itself
int nCharCount = pMap->GetCharCount();
sal_uInt32 nChar = pMap->GetFirstChar();
for(; --nCharCount >= 0; nChar = pMap->GetNextChar( nChar ) )