diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 10:24:19 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-12-10 16:14:43 +0100 |
commit | 2d75df91d24c9eadc9f778356c5bc9d9800cd4c6 (patch) | |
tree | e8ab8cf5280f48ee77c582a6e04f4f280d3f6ddd /lotuswordpro | |
parent | e7a4f50de186a2b90c067a0246e6b8cb13373e7d (diff) |
guard against missing parent layout
Change-Id: Ib08403edf805367c7392325fcfb66bc7ed4d6f6a
(cherry picked from commit 713d737b1ff73e76c6543198ce9299e1c83ac147)
(cherry picked from commit 5f469a2a1af8bff36fc3a5849a1500345febdba4)
Reviewed-on: https://gerrit.libreoffice.org/20586
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
(cherry picked from commit 6fac6b9cd02a3f26edd800b312ceca7a1c19ee52)
Diffstat (limited to 'lotuswordpro')
-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 d902a0491a22..a3295c70e014 100644 --- a/lotuswordpro/source/filter/lwpframelayout.cxx +++ b/lotuswordpro/source/filter/lwpframelayout.cxx @@ -189,8 +189,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, |