summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/sectfrm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/layout/sectfrm.cxx')
-rw-r--r--sw/source/core/layout/sectfrm.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/layout/sectfrm.cxx b/sw/source/core/layout/sectfrm.cxx
index dc148230e2bc..53a50b8bd6ce 100644
--- a/sw/source/core/layout/sectfrm.cxx
+++ b/sw/source/core/layout/sectfrm.cxx
@@ -257,7 +257,7 @@ void SwSectionFrm::_Cut( bool bRemove )
SwLayoutFrm *pUp = GetUpper();
if( bRemove )
{
- Remove();
+ RemoveFromLayout();
if( pUp && !pUp->Lower() && pUp->IsFtnFrm() && !pUp->IsColLocked() &&
pUp->GetUpper() )
{
@@ -2563,7 +2563,7 @@ void SwRootFrm::_DeleteEmptySct()
if( !pSect->Frm().HasArea() && !pSect->ContainsCntnt() )
{
SwLayoutFrm* pUp = pSect->GetUpper();
- pSect->Remove();
+ pSect->RemoveFromLayout();
delete pSect;
if( pUp && !pUp->Lower() )
{