summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/impglyphitem.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/gdi/impglyphitem.cxx')
-rw-r--r--vcl/source/gdi/impglyphitem.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/gdi/impglyphitem.cxx b/vcl/source/gdi/impglyphitem.cxx
index 92703432d8bb..5896d5bfeb7c 100644
--- a/vcl/source/gdi/impglyphitem.cxx
+++ b/vcl/source/gdi/impglyphitem.cxx
@@ -134,7 +134,8 @@ SalLayoutGlyphsImpl* SalLayoutGlyphsImpl::cloneCharRange(sal_Int32 index, sal_In
#ifdef DBG_UTIL
bool SalLayoutGlyphsImpl::isEqual(const SalLayoutGlyphsImpl* other) const
{
- if (GetFont()->mxFontMetric != other->GetFont()->mxFontMetric)
+ if (!GetFont()->mxFontMetric->CompareDeviceIndependentFontAttributes(
+ *other->GetFont()->mxFontMetric))
return false;
if (GetFlags() != other->GetFlags())
return false;