Kaydet (Commit) d941d4d7 authored tarafından Radek Doulik's avatar Radek Doulik

fix character positions translation (partial fix for n#757387)

Change-Id: I042d6de9533f0f33e1fb64c3b92dc1bafaa6149f
üst 0afd117a
...@@ -1459,9 +1459,10 @@ void WinMtfOutput::DrawText( Point& rPosition, String& rText, sal_Int32* pDXArry ...@@ -1459,9 +1459,10 @@ void WinMtfOutput::DrawText( Point& rPosition, String& rText, sal_Int32* pDXArry
for( i = 0, nSum = 0; i < nLen; i++ ) for( i = 0, nSum = 0; i < nLen; i++ )
{ {
sal_Int32 nTemp = ImplMap( Size( pDXArry[ i ], 0 ) ).Width(); if ( i ) {
nSum += nTemp; pDXArry[ i - 1 ] = ImplMap( Size( nSum, 0 ) ).Width();
pDXArry[ i ] = nSum; }
nSum += pDXArry[ i ];
} }
} }
if ( mnLatestTextLayoutMode != mnTextLayoutMode ) if ( mnLatestTextLayoutMode != mnTextLayoutMode )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment