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>
This commit is contained in:
Noel Grandin 2020-03-13 16:44:24 +02:00 committed by Caolán McNamara
parent cdd4f1cafe
commit 39fa33d010

View file

@ -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;