diff options
Diffstat (limited to 'sw/source/core/layout/sectfrm.cxx')
-rw-r--r-- | sw/source/core/layout/sectfrm.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/core/layout/sectfrm.cxx b/sw/source/core/layout/sectfrm.cxx index de9a62430822..807780612bdc 100644 --- a/sw/source/core/layout/sectfrm.cxx +++ b/sw/source/core/layout/sectfrm.cxx @@ -281,8 +281,10 @@ void SwSectionFrame::Cut_( bool bRemove ) { InvalidateNextPos(); // Someone has to take over the retouching: predecessor or Upper - if ( nullptr != (pFrame = GetPrev()) ) - { pFrame->SetRetouche(); + pFrame = GetPrev(); + if ( nullptr != pFrame ) + { + pFrame->SetRetouche(); pFrame->Prepare( PrepareHint::WidowsOrphans ); if ( pFrame->IsContentFrame() ) pFrame->InvalidatePage( pPage ); |