summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/outdev/font.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx
index ebe2bf9d805b..a7f8ab9ed9f0 100644
--- a/vcl/source/outdev/font.cxx
+++ b/vcl/source/outdev/font.cxx
@@ -1268,7 +1268,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;
@@ -1355,9 +1354,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;