editeng/source/editeng/impedit3.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit c3b12e24ce5e62e05d524a338e1c17f8e7a53f53 Author: Julien Nabet <[email protected]> Date: Mon Jun 4 07:58:01 2012 +0200 Fix call of getLength Change-Id: I5fb5bc5016bd2779643ecfcf2df40e00c4741a2c diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index 9bac785..83e5689 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -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; } } _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
