Fix call of getLength

Change-Id: I5fb5bc5016bd2779643ecfcf2df40e00c4741a2c
This commit is contained in:
Julien Nabet 2012-06-04 07:58:01 +02:00
parent 0eaed74b10
commit c3b12e24ce

View file

@ -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;
}
}