summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-10 12:14:54 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-10 12:15:39 +0000
commitf4f6f8d74da117762a74cbc213fac2f89ae88b6a (patch)
tree569a8828a719bfb2df431aa6135063703f49a556
parent168bc7c7cdbf2dd30aac9235b44396c987654504 (diff)
guard against missing grandfather layout
Change-Id: I1282b2c3c920ef89460aa57026d89c8928155116 (cherry picked from commit f9164c1785432996092d376fb3983e1a3f78dad7)
-rw-r--r--lotuswordpro/source/filter/lwpframelayout.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpframelayout.cxx b/lotuswordpro/source/filter/lwpframelayout.cxx
index eef52a944bfd..b26f06345b99 100644
--- a/lotuswordpro/source/filter/lwpframelayout.cxx
+++ b/lotuswordpro/source/filter/lwpframelayout.cxx
@@ -190,7 +190,7 @@ void LwpFrame::RegisterStyle(XFFrameStyle* pFrameStyle)
LwpVirtualLayout* pParent = m_pLayout->GetParentLayout();
if (!pParent)
throw std::runtime_error("missing Parent Layout");
- if(pParent->IsPage()&& pParent->GetParentLayout()->IsPage())
+ if (pParent->IsPage() && pParent->GetParentLayout() && pParent->GetParentLayout()->IsPage())
{
//for mirror page, problems exist if the parent layout is header or footer layout,
pParent = pParent->GetParentLayout();