summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-27 20:18:08 +0000
committerAndras Timar <andras.timar@collabora.com>2016-01-04 12:20:41 +0100
commitb2a62de9bee2eeaa38a273feb266c024ea024439 (patch)
tree913d38058530c28af340d09e47d7c7230dd74ea5 /lotuswordpro
parentea16a20b15db733cc9bf35d4fc9cd9624ed2e2ce (diff)
guard against missing Container Layout
Change-Id: Ie43b13448a6cacd3af4822b85f06ed84a2d38ff9 (cherry picked from commit 932c74e38ca397d82d609831e79ceaef2183cf64) (cherry picked from commit 1b2015281ee34f187fdb747db5f6223e8de63df4) Reviewed-on: https://gerrit.libreoffice.org/20968 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com> (cherry picked from commit 7f4fcdbda41753c7923974c0af58271e38cdabe3)
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwptoc.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwptoc.cxx b/lotuswordpro/source/filter/lwptoc.cxx
index ce2c239fd39f..ec6cb5ef008c 100644
--- a/lotuswordpro/source/filter/lwptoc.cxx
+++ b/lotuswordpro/source/filter/lwptoc.cxx
@@ -287,7 +287,10 @@ void LwpTocSuperLayout::XFConvertFrame(XFContentContainer* pCont, sal_Int32 nSt
XFContentContainer * pTableContainer = pXFFrame;
// if *this is a TOCSuperTableLayout and it's located in a cell
// add the frame to upper level and add TOCSuperTableLayout into the frame
- if ( GetContainerLayout()->IsCell() )
+ rtl::Reference<LwpVirtualLayout> xContainer(GetContainerLayout());
+ if (!xContainer.is())
+ return;
+ if (xContainer->IsCell())
{
pTableContainer = pCont; // TOC contain table directly
pXFFrame->Add(pCont);
@@ -296,7 +299,7 @@ void LwpTocSuperLayout::XFConvertFrame(XFContentContainer* pCont, sal_Int32 nSt
else
{
//add frame to the container
- pCont ->Add(pXFFrame);
+ pCont->Add(pXFFrame);
}
pTableLayout->XFConvert(pTableContainer);
}