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:58 +0000 |
commit | 64fdc60c947c96b81a8edbdfcc6405a8f3a139ef (patch) | |
tree | 46cf75368c8322fd2ec61c3867280192d0cafe34 /lotuswordpro | |
parent | 07cef793f3cbe8bdada82c76e13e3ec1a7c3332d (diff) |
guard against no container layout
Change-Id: If615c68bfaf145d81dab96b05e7b903c1a6b03cf
(cherry picked from commit c6a2df4061de028eb9d7fb752051ecb9f1621fef)
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() ) { |