diff options
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/mtfrenderer/implrenderer.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index 0425189be46b..8c25ee505913 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -1052,11 +1052,8 @@ namespace cppcanvas pChars[0] = '/'; pChars[3]=pChars[2]=pChars[1]=pChars[0]; - long nStrikeoutWidth = nWidth; - String aStrikeoutTest(pChars, SAL_N_ELEMENTS(pChars)); - - nStrikeoutWidth = ( rParms.mrVDev.GetTextWidth( aStrikeoutTest ) + 2 ) / 4; - aStrikeoutTest.Erase(); + long nStrikeoutWidth = (rParms.mrVDev.GetTextWidth( + rtl::OUString(pChars, SAL_N_ELEMENTS(pChars))) + 2) / 4; if( nStrikeoutWidth <= 0 ) nStrikeoutWidth = 1; @@ -1071,7 +1068,6 @@ namespace cppcanvas while( (nFullStrikeoutWidth+=nStrikeoutWidth ) < nMaxWidth+1 ) aStrikeoutText += pChars[0]; - xub_StrLen nLen = aStrikeoutText.Len(); if( nLen ) |