diff options
author | Radek Doulik <rodo@novell.com> | 2012-10-30 15:26:43 +0100 |
---|---|---|
committer | Radek Doulik <rodo@novell.com> | 2012-10-30 15:28:02 +0100 |
commit | d941d4d723afbc0b9e88bd19cb50ad711158e3a5 (patch) | |
tree | 93ddb61487b2714d070b0f809999d0762b2de2a7 /svtools | |
parent | 0afd117a2598c1cdc4efd7952fefbfbceee67dd3 (diff) |
fix character positions translation (partial fix for n#757387)
Change-Id: I042d6de9533f0f33e1fb64c3b92dc1bafaa6149f
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/filter/wmf/winmtf.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/svtools/source/filter/wmf/winmtf.cxx b/svtools/source/filter/wmf/winmtf.cxx index 3cc3ef9ee104..23a8c901c532 100644 --- a/svtools/source/filter/wmf/winmtf.cxx +++ b/svtools/source/filter/wmf/winmtf.cxx @@ -1459,9 +1459,10 @@ void WinMtfOutput::DrawText( Point& rPosition, String& rText, sal_Int32* pDXArry for( i = 0, nSum = 0; i < nLen; i++ ) { - sal_Int32 nTemp = ImplMap( Size( pDXArry[ i ], 0 ) ).Width(); - nSum += nTemp; - pDXArry[ i ] = nSum; + if ( i ) { + pDXArry[ i - 1 ] = ImplMap( Size( nSum, 0 ) ).Width(); + } + nSum += pDXArry[ i ]; } } if ( mnLatestTextLayoutMode != mnTextLayoutMode ) |