diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2013-05-23 22:32:14 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2013-05-23 23:00:17 +0200 |
commit | 989225a89b109ca1497021dd4855a2450d13e8b9 (patch) | |
tree | 4f4f84e8c2bc2daaab1c2d86c3f89ac44994e2be /vcl | |
parent | a0dcc8f78061d22d925f31ef8d03ca751ad6dc19 (diff) |
Fix improper glyph positioning with old fonts
Apparently this second mnXOffset is not needed, further more it breaks
some old Microsoft fonts.
Change-Id: Ice033cb6bcb3f1bdfeef31a8406a7a2e5487da97
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/sallayout.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx index e7950906d9eb..31b01b97229e 100644 --- a/vcl/source/gdi/sallayout.cxx +++ b/vcl/source/gdi/sallayout.cxx @@ -1098,7 +1098,7 @@ void GenericSalLayout::ApplyDXArray( ImplLayoutArgs& rArgs ) if( m_GlyphItems[j].IsClusterStart() ) break; if( !m_GlyphItems[j].IsDiacritic() ) // #i99367# ignore diacritics - nOldClusterWidth += m_GlyphItems[j].mnNewWidth - m_GlyphItems[j].mnXOffset; + nOldClusterWidth += m_GlyphItems[j].mnNewWidth; nNewClusterWidth += pNewGlyphWidths[j]; } const int nDiff = nNewClusterWidth - nOldClusterWidth; |