summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-27 10:07:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-27 10:11:02 +0000
commitc56d96fc39de897b5e8213eb5e5af295759dccbf (patch)
tree3128adcb71a6000f74e91e9af789c9c1cf5e2a57
parent432368d1ff0fca43924a498f719c92b944682313 (diff)
Resolves: fdo#86203 FontCharMap claims to have twice the entries it should
regression from commit f6d61562d41b8a49449d881da66a3d8fa519487f Author: Chris Sherlock <chris.sherlock79@gmail.com> Date: Mon Oct 6 18:16:16 2014 +1100 vcl: Make ImplFontCharMap a pImpl and move functions to FontCharMap which added this hunk to FontCharMap::FontCharMap without removing the existing loop in ImplFontCharMap::ImplFontCharMap which did exactly the same thing. So doubling the true mnCharCount. Lets just leave the initialization of mnCharCount in the ctor of the thing that contains mnCharCount Change-Id: I389cbd32217b48ed1faf8e2fa51c8f502c09dbf6
-rw-r--r--vcl/source/gdi/impfont.cxx8
1 files changed, 0 insertions, 8 deletions
diff --git a/vcl/source/gdi/impfont.cxx b/vcl/source/gdi/impfont.cxx
index 327b0d78de3b..a8863ef56df8 100644
--- a/vcl/source/gdi/impfont.cxx
+++ b/vcl/source/gdi/impfont.cxx
@@ -401,14 +401,6 @@ FontCharMap::FontCharMap( const CmapResult& rCR )
{
ImplFontCharMapPtr pImplFontCharMap( new ImplFontCharMap(rCR) );
mpImplFontCharMap = pImplFontCharMap;
-
- const sal_UCS4* pRangePtr = mpImplFontCharMap->mpRangeCodes;
- for( int i = mpImplFontCharMap->mnRangeCount; --i >= 0; pRangePtr += 2 )
- {
- sal_UCS4 cFirst = pRangePtr[0];
- sal_UCS4 cLast = pRangePtr[1];
- mpImplFontCharMap->mnCharCount += cLast - cFirst;
- }
}
FontCharMap::~FontCharMap()