where is the logic of having 5 pChars if we only need 4
Change-Id: I16c1f5ee7a05aa011d00e6f1de86e1aa5d9621b8
This commit is contained in:
parent
64a9f8942d
commit
67d0936315
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue