diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-01-20 19:45:26 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-01-20 21:54:35 +0100 |
commit | 0453eb32b9055fe27fcb7b9cef22c46d32e59196 (patch) | |
tree | 55f0a38801f5af4aa07981d158a28f27aaee058c /lotuswordpro/source | |
parent | c4934d2affbc272f97cbae3eb15bfcc5af57a1da (diff) |
Resolves: tdf#130093 some lwp file not loading
Change-Id: I2be53792f0fadcf1ca0e99c8f9fab7305d0fcddd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87100
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r-- | lotuswordpro/source/filter/lwptablelayout.cxx | 2 | ||||
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xfcontentcontainer.cxx | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwptablelayout.cxx b/lotuswordpro/source/filter/lwptablelayout.cxx index a49c4375858b..e1647dd34511 100644 --- a/lotuswordpro/source/filter/lwptablelayout.cxx +++ b/lotuswordpro/source/filter/lwptablelayout.cxx @@ -834,7 +834,7 @@ void LwpTableLayout::Read() void LwpTableLayout::XFConvert(XFContentContainer* pCont) { if (!m_pXFTable) - throw std::runtime_error("missing table"); + return; pCont->Add(m_pXFTable.get()); } /** diff --git a/lotuswordpro/source/filter/xfilter/xfcontentcontainer.cxx b/lotuswordpro/source/filter/xfilter/xfcontentcontainer.cxx index c8e8de733027..b64ad72721a4 100644 --- a/lotuswordpro/source/filter/xfilter/xfcontentcontainer.cxx +++ b/lotuswordpro/source/filter/xfilter/xfcontentcontainer.cxx @@ -70,9 +70,6 @@ XFContentContainer::~XFContentContainer() void XFContentContainer::Add(XFContent *pContent) { - if (pContent->m_bInserted) - throw std::runtime_error("already inserted"); - pContent->m_bInserted = true; m_aContents.emplace_back(pContent); } |