diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 09:16:59 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-12-10 16:14:41 +0100 |
commit | 9069b159c9a17a9b33634038f5786211019586d5 (patch) | |
tree | 24f43023cef6226ad498d39bf7ecb4289c10c4b8 /lotuswordpro | |
parent | 3ae07c41da0287054a042ccd16af7dfeca28186f (diff) |
guard against missing paragraph container
Change-Id: I6ac074c7fe2821983b4a056e28fc5379f7a93974
(cherry picked from commit 130eaf02de89c8996ff6e817a005993dcbd586e6)
Reviewed-on: https://gerrit.libreoffice.org/20564
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
(cherry picked from commit be6ceb6dd7922c26faef12c866eeed03bc6581da)
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwppara.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lotuswordpro/source/filter/lwppara.hxx b/lotuswordpro/source/filter/lwppara.hxx index d3d7bf637ccc..57886ab69b87 100644 --- a/lotuswordpro/source/filter/lwppara.hxx +++ b/lotuswordpro/source/filter/lwppara.hxx @@ -345,6 +345,8 @@ inline OUString LwpPara::GetBulletStyleName() const } inline void LwpPara::AddXFContent(XFContent* pCont) { + if (!m_pXFContainer) + throw std::runtime_error("paragraph lacks container"); m_pXFContainer->Add(pCont); } inline void LwpPara::SetXFContainer(XFContentContainer* pCont) |