summaryrefslogtreecommitdiff
path: root/cppcanvas
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-19 09:59:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-19 14:11:49 +0100
commit67d0936315837eca82b2e530cb7ea8ba833d7308 (patch)
tree6eb72c164a3bbee00cbfc28ab03fbd1bd98d82b5 /cppcanvas
parent64a9f8942d862173f9f22af10782d6a73c4900c9 (diff)
where is the logic of having 5 pChars if we only need 4
Change-Id: I16c1f5ee7a05aa011d00e6f1de86e1aa5d9621b8
Diffstat (limited to 'cppcanvas')
-rw-r--r--cppcanvas/source/mtfrenderer/implrenderer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx
index bf2c0d58dee3..0425189be46b 100644
--- a/cppcanvas/source/mtfrenderer/implrenderer.cxx
+++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx
@@ -1045,7 +1045,7 @@ namespace cppcanvas
{
long nWidth = rParms.mrVDev.GetTextWidth( rString,nIndex,nLength );
- xub_Unicode pChars[5];
+ xub_Unicode pChars[4];
if ( rState.textStrikeoutStyle == STRIKEOUT_X )
pChars[0] = 'X';
else
@@ -1053,7 +1053,7 @@ namespace cppcanvas
pChars[3]=pChars[2]=pChars[1]=pChars[0];
long nStrikeoutWidth = nWidth;
- String aStrikeoutTest( pChars, 4 );
+ String aStrikeoutTest(pChars, SAL_N_ELEMENTS(pChars));
nStrikeoutWidth = ( rParms.mrVDev.GetTextWidth( aStrikeoutTest ) + 2 ) / 4;
aStrikeoutTest.Erase();