summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/layout/ssfrm.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/core/layout/ssfrm.cxx b/sw/source/core/layout/ssfrm.cxx
index 02f834f4a5d8..f4831edb2464 100644
--- a/sw/source/core/layout/ssfrm.cxx
+++ b/sw/source/core/layout/ssfrm.cxx
@@ -367,6 +367,12 @@ void SwFrm::Destroy()
delete mpDrawObjs;
mpDrawObjs = 0;
}
+
+ SwLayoutFrm *pFrm = GetUpper();
+ if (pFrm && pFrm->pLower == this)
+ {
+ pFrm->pLower = NULL;
+ }
}
SwFrm::~SwFrm()