summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lotuswordpro/source/filter/lwptoc.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/lotuswordpro/source/filter/lwptoc.cxx b/lotuswordpro/source/filter/lwptoc.cxx
index 4857e945baee..c92171e7ed07 100644
--- a/lotuswordpro/source/filter/lwptoc.cxx
+++ b/lotuswordpro/source/filter/lwptoc.cxx
@@ -243,6 +243,9 @@ void LwpTocSuperLayout::XFConvert(XFContentContainer* pCont)
// add TOC content
LwpSuperTableLayout::XFConvert(pToc);
+ if (!GetContainerLayout())
+ return;
+
// if current TOC is located in a cell, we must add a frame between upper level container and TOC
if ( !GetContainerLayout()->IsCell() )
{