summaryrefslogtreecommitdiff
path: root/svtools/source/filter/wmf/winmtf.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/filter/wmf/winmtf.cxx')
-rw-r--r--svtools/source/filter/wmf/winmtf.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/svtools/source/filter/wmf/winmtf.cxx b/svtools/source/filter/wmf/winmtf.cxx
index 2968ec1ae276..60c0859735e1 100644
--- a/svtools/source/filter/wmf/winmtf.cxx
+++ b/svtools/source/filter/wmf/winmtf.cxx
@@ -1461,9 +1461,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 )