diff options
Diffstat (limited to 'sw/source/core/text/itrform2.cxx')
-rwxr-xr-x | sw/source/core/text/itrform2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/itrform2.cxx b/sw/source/core/text/itrform2.cxx index 39f68943cb91..f8b8b16c679b 100755 --- a/sw/source/core/text/itrform2.cxx +++ b/sw/source/core/text/itrform2.cxx @@ -979,7 +979,7 @@ SwTextPortion *SwTextFormatter::NewTextPortion( SwTextFormatInfo &rInf ) sal_Int32( pPor->GetAscent() ) ) / 8; if ( !nExpect ) nExpect = 1; - nExpect = rInf.GetIdx() + ((rInf.Width() - rInf.X()) / nExpect); + nExpect = rInf.GetIdx() + (rInf.GetLineWidth() / nExpect); if( nExpect > rInf.GetIdx() && nNextChg > nExpect ) nNextChg = std::min( nExpect, rInf.GetText().getLength() ); |