diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 09:16:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 09:18:51 +0000 |
commit | afe00bba93d5c564dff44789c3a4daf5e47c1944 (patch) | |
tree | eb7125281f3669cbce7ceb7d782f41dbe7488237 /lotuswordpro | |
parent | 3ccd312596828b917540fa79004a08d738522c23 (diff) |
guard against missing paragraph container
Change-Id: I6ac074c7fe2821983b4a056e28fc5379f7a93974
(cherry picked from commit 130eaf02de89c8996ff6e817a005993dcbd586e6)
Reviewed-on: https://gerrit.libreoffice.org/20563
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
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 6e77876dde7f..a6d7563a2bf2 100644 --- a/lotuswordpro/source/filter/lwppara.hxx +++ b/lotuswordpro/source/filter/lwppara.hxx @@ -323,6 +323,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) |