diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 10:24:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 10:24:47 +0000 |
commit | 5f469a2a1af8bff36fc3a5849a1500345febdba4 (patch) | |
tree | 4ff27af04b4f055ebabe8d498f5dbf1cb478ec50 /lotuswordpro/source | |
parent | 6c296afad6b04328a596a92326aa50b1b480aba0 (diff) |
guard against missing parent layout
Change-Id: Ib08403edf805367c7392325fcfb66bc7ed4d6f6a
(cherry picked from commit 713d737b1ff73e76c6543198ce9299e1c83ac147)
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r-- | lotuswordpro/source/filter/lwpframelayout.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpframelayout.cxx b/lotuswordpro/source/filter/lwpframelayout.cxx index d15e02450b8f..eef52a944bfd 100644 --- a/lotuswordpro/source/filter/lwpframelayout.cxx +++ b/lotuswordpro/source/filter/lwpframelayout.cxx @@ -186,8 +186,10 @@ void LwpFrame::RegisterStyle(XFFrameStyle* pFrameStyle) */ void LwpFrame::XFConvert(XFContentContainer* pCont) { - //parse the frame which anchor to page + // parse the frame which anchor to page LwpVirtualLayout* pParent = m_pLayout->GetParentLayout(); + if (!pParent) + throw std::runtime_error("missing Parent Layout"); if(pParent->IsPage()&& pParent->GetParentLayout()->IsPage()) { //for mirror page, problems exist if the parent layout is header or footer layout, |