diff options
Diffstat (limited to 'sw/source/core/text/txtfrm.cxx')
-rw-r--r-- | sw/source/core/text/txtfrm.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx index 4e610dff40fc..f1f3708f9fde 100644 --- a/sw/source/core/text/txtfrm.cxx +++ b/sw/source/core/text/txtfrm.cxx @@ -3417,12 +3417,12 @@ void SwTextFrame::CalcAdditionalFirstLineOffset() { SwTwips nNumberPortionWidth( pFirstPortion->Width() ); - const SwLinePortion* pPortion = pFirstPortion->GetPortion(); + const SwLinePortion* pPortion = pFirstPortion->GetNextPortion(); while ( pPortion && pPortion->InNumberGrp() && !pPortion->IsFootnoteNumPortion()) { nNumberPortionWidth += pPortion->Width(); - pPortion = pPortion->GetPortion(); + pPortion = pPortion->GetNextPortion(); } if ( ( IsRightToLeft() && @@ -3797,7 +3797,7 @@ void SwTextFrame::VisitPortions( SwPortionHandler& rPH ) const while ( pPor ) { pPor->HandlePortion( rPH ); - pPor = pPor->GetPortion(); + pPor = pPor->GetNextPortion(); } rPH.LineBreak(pLine->Width()); |