diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 12:14:54 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 12:15:16 +0000 |
commit | f9164c1785432996092d376fb3983e1a3f78dad7 (patch) | |
tree | 5a6ff09fa7044e487a1117115cc73632a09c447f /lotuswordpro | |
parent | 1b12d0dcee6981e49da2597a45ad2f2557fa6730 (diff) |
guard against missing grandfather layout
Change-Id: I1282b2c3c920ef89460aa57026d89c8928155116
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpframelayout.cxx | 2 |
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(); |