diff options
-rw-r--r-- | vcl/source/outdev/font.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx index eb98b2c2a184..1e4632939f63 100644 --- a/vcl/source/outdev/font.cxx +++ b/vcl/source/outdev/font.cxx @@ -1258,7 +1258,6 @@ ImplFontEntry* ImplFontCache::GetFontEntry( PhysicalFontCollection* pFontList, ImplFontEntry* ImplFontCache::GetFontEntry( PhysicalFontCollection* pFontList, FontSelectPattern& aFontSelData ) { - const FontSelectPattern aFontSelDataOrig(aFontSelData); // check if a directly matching logical font instance is already cached, // the most recently used font usually has a hit rate of >50% ImplFontEntry *pEntry = NULL; @@ -1345,9 +1344,8 @@ ImplFontEntry* ImplFontCache::GetFontEntry( PhysicalFontCollection* pFontList, } #endif - // Add the new entry to the cache with the original FontSelectPattern, - // so that we can find it next time as a direct cache hit. - maFontInstanceList[ aFontSelDataOrig ] = pEntry; + // add the new entry to the cache + maFontInstanceList[ aFontSelData ] = pEntry; } mpFirstEntry = pEntry; |