diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx index 2eaaaeb1afb3..85a179880780 100644 --- a/sw/source/core/text/txtfrm.cxx +++ b/sw/source/core/text/txtfrm.cxx @@ -2601,7 +2601,6 @@ void SwTextFrame::PrepWidows( const sal_uInt16 nNeed, bool bNotify ) SwParaPortion *pPara = GetPara(); if ( !pPara ) return; - pPara->SetPrepWidows(); sal_uInt16 nHave = nNeed; @@ -2633,6 +2632,7 @@ void SwTextFrame::PrepWidows( const sal_uInt16 nNeed, bool bNotify ) if( bSplit ) { + pPara->SetPrepWidows(); GetFollow()->SetOfst( aLine.GetEnd() ); aLine.TruncLines( true ); if( pPara->IsFollowField() ) diff --git a/sw/source/core/text/widorp.cxx b/sw/source/core/text/widorp.cxx index 1e47974f5340..d049fc79b0c0 100644 --- a/sw/source/core/text/widorp.cxx +++ b/sw/source/core/text/widorp.cxx @@ -459,6 +459,7 @@ bool WidowsAndOrphans::FindWidows( SwTextFrame *pFrame, SwTextMargin &rLine ) // i#91421 if ( !pMaster->GetIndPrev() ) { + pMaster->ChgThisLines(); sal_uLong nLines = pMaster->GetThisLines(); if(nLines == 0 && pMaster->HasPara()) {