ofz#26676 null deref
Change-Id: Ic2bd8b49762266ad48263bd68a143b46fb5fd66f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104863 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -884,7 +884,14 @@ sal_uInt16 LwpTableLayout::ConvertHeadingRow(
|
||||
XFRow* pXFRow = pTmpTable->GetRow(1);
|
||||
pXFTable->AddHeaderRow(pXFRow);
|
||||
pTmpTable->RemoveRow(1);
|
||||
nContentRow = m_RowsMap[0]->GetCurMaxSpannedRows(0,nCol);
|
||||
auto iter = m_RowsMap.find(0);
|
||||
if (iter == m_RowsMap.end())
|
||||
{
|
||||
SAL_WARN("lwp", "row 0 is unknown");
|
||||
nContentRow = 0;
|
||||
}
|
||||
else
|
||||
nContentRow = iter->second->GetCurMaxSpannedRows(0,nCol);
|
||||
}
|
||||
}
|
||||
return nContentRow;
|
||||
|
||||
Reference in New Issue
Block a user