diff options
-rw-r--r-- | vcl/source/gdi/pdffontcache.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/source/gdi/pdffontcache.hxx b/vcl/source/gdi/pdffontcache.hxx index 597c47f5bc09..c02e28b91d33 100644 --- a/vcl/source/gdi/pdffontcache.hxx +++ b/vcl/source/gdi/pdffontcache.hxx @@ -45,8 +45,9 @@ namespace vcl std::type_info *pType = rRight.m_typeFontFace; return m_nFontId < rRight.m_nFontId || - m_typeFontFace->before( *pType ) || - m_bVertical < rRight.m_bVertical; + ( m_nFontId == rRight.m_nFontId && + ( m_typeFontFace->before( *pType ) || + ( *m_typeFontFace == *pType && m_bVertical < rRight.m_bVertical ) ) ); } }; struct FontData |