diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-03-13 16:44:24 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-03-25 14:36:42 +0100 |
commit | 39fa33d01032ad3f5cdc164aee654022d30775b5 (patch) | |
tree | afad5dd96ad57eadb9f48ce11fac3010f01021e5 /lotuswordpro | |
parent | cdd4f1cafef2c1592f6cb4ad1f4bca8db4225cbf (diff) |
fix assert when loading id:000059,sig:11,src:000008,op:havoc,rep:2.lwp
one of caolans test files, which appears to have a row layout which
references a non-existent parent.
Change-Id: I9322ed430aa9edd47db9967a19938b02e4af6bc7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90475
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpcelllayout.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwpcelllayout.cxx b/lotuswordpro/source/filter/lwpcelllayout.cxx index 17f516a7897a..13b6461feeb5 100644 --- a/lotuswordpro/source/filter/lwpcelllayout.cxx +++ b/lotuswordpro/source/filter/lwpcelllayout.cxx @@ -713,10 +713,7 @@ void LwpConnectedCellLayout::SetCellMap() LwpCellBorderType LwpConnectedCellLayout::GetCellBorderType(sal_uInt16 nRow, sal_uInt16 nCol, LwpTableLayout * pTableLayout) { if (!pTableLayout) - { - assert(false); - return enumWholeBorder; - } + throw std::runtime_error("missing table layout"); sal_uInt16 nRowSpan = m_nRealrowspan; |