Fix call of getLength
Change-Id: I5fb5bc5016bd2779643ecfcf2df40e00c4741a2c
This commit is contained in:
parent
0eaed74b10
commit
c3b12e24ce
1 changed files with 2 additions and 2 deletions
|
@ -1011,7 +1011,7 @@ sal_Bool ImpEditEngine::CreateLines( sal_uInt16 nPara, sal_uInt32 nStartPosY )
|
|||
if ( pPortion->GetSize().Width() > nXWidth )
|
||||
{
|
||||
sal_Int32 nWidthOrg = pPortion->GetSize().Width();
|
||||
sal_Int32 nChars = aFieldValue.Len();
|
||||
sal_Int32 nChars = aFieldValue.getLength();
|
||||
sal_Int32 nApproxWC = nXWidth / ( nWidthOrg / nChars );
|
||||
ExtraPortionInfo *pExtraInfo= pPortion->GetExtraInfos();
|
||||
if( !nApproxWC ) nApproxWC++;
|
||||
|
@ -1030,7 +1030,7 @@ sal_Bool ImpEditEngine::CreateLines( sal_uInt16 nPara, sal_uInt32 nStartPosY )
|
|||
|
||||
while( nChars > 0 )
|
||||
{
|
||||
pExtraInfo->lineBreaksList.push_back( aFieldValue.Len() - nChars );
|
||||
pExtraInfo->lineBreaksList.push_back( aFieldValue.getLength() - nChars );
|
||||
nChars -= nApproxWC;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue