diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-13 16:22:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-13 16:22:35 +0000 |
commit | c6a2df4061de028eb9d7fb752051ecb9f1621fef (patch) | |
tree | 9121f1a99fd5d0a250dc77016f709cfe32e43ca9 /lotuswordpro | |
parent | a065eda2383e8d2d8de3cf0a280f6699c05da425 (diff) |
guard against no container layout
Change-Id: If615c68bfaf145d81dab96b05e7b903c1a6b03cf
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwptoc.cxx | 3 |
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() ) { |