summaryrefslogtreecommitdiff
path: root/vcl/source/font/fontcache.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-06-01 13:25:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-06-02 22:16:11 +0200
commit846675d6c0ff6838526f97961e95eca945c60eeb (patch)
treebf018fce2ff33c12c800609f508461883ee3ccbe /vcl/source/font/fontcache.cxx
parent7e83b2d3b52fda5c1535e85f76c096c3ee627b1e (diff)
fix dubious cache comparison check
in... commit 083b7ca26bbf4b9bad2922520caaf5c0227dac5e Date: Tue Dec 26 15:58:21 2017 +0100 Move PhysicalFontFace member of FontSelectPattern this went from... if ( (rA.mpFontData && rA.mpFontData->IsSymbolFont()) || (rB.mpFontData && rB.mpFontData->IsSymbolFont()) ) to ... if (rA.IsSymbolFont() && rB.IsSymbolFont()) { Change-Id: I1407573dfa73ac843b790ff3bc4ac0d5f66ab42c Reviewed-on: https://gerrit.libreoffice.org/55183 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/font/fontcache.cxx')
-rw-r--r--vcl/source/font/fontcache.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/font/fontcache.cxx b/vcl/source/font/fontcache.cxx
index 3e4945505144..205b49ada4e0 100644
--- a/vcl/source/font/fontcache.cxx
+++ b/vcl/source/font/fontcache.cxx
@@ -60,7 +60,7 @@ bool ImplFontCache::IFSD_Equal::operator()(const FontSelectPattern& rA, const Fo
// Symbol fonts may recode from one type to another So they are only
// safely equivalent for equal targets
- if (rA.IsSymbolFont() && rB.IsSymbolFont())
+ if (rA.IsSymbolFont() || rB.IsSymbolFont())
{
if (rA.maTargetName != rB.maTargetName)
return false;