summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2013-05-23 22:32:14 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2013-05-23 23:04:11 +0200
commitcef3f3aac2f7a372e796deac4ee3e8155c5eb697 (patch)
tree10326cccb5e833e0ed37cfdf6b0c0d358053f7af /vcl
parentd443bfea35c97cdb10e72e0eab5fb19845fc4447 (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.cxx2
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;