summaryrefslogtreecommitdiffstats
path: root/cppcanvas/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-19 09:55:51 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-19 14:11:49 +0100
commit64a9f8942d862173f9f22af10782d6a73c4900c9 (patch)
tree0095a192ab2afc757a9d4c771e30dd394886e6e3 /cppcanvas/source
parentif the string is created from 4 sal_Unicodes then it cannot be of 0 len (diff)
downloadcore-64a9f8942d862173f9f22af10782d6a73c4900c9.tar.gz
core-64a9f8942d862173f9f22af10782d6a73c4900c9.zip
if the string is created of len 0, then no point passing any arguments
Change-Id: I0055ad846f438765c5259e02025e6ef5f32c6169
Diffstat (limited to 'cppcanvas/source')
-rw-r--r--cppcanvas/source/mtfrenderer/implrenderer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx
index db41506aa80f..bf2c0d58dee3 100644
--- a/cppcanvas/source/mtfrenderer/implrenderer.cxx
+++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx
@@ -1067,7 +1067,7 @@ namespace cppcanvas
nMaxWidth += nWidth + 1;
long nFullStrikeoutWidth = 0;
- String aStrikeoutText( pChars, 0 );
+ String aStrikeoutText;
while( (nFullStrikeoutWidth+=nStrikeoutWidth ) < nMaxWidth+1 )
aStrikeoutText += pChars[0];