Kaydet (Commit) d2a9d99d authored tarafından Caolán McNamara's avatar Caolán McNamara

guard against missing table

Change-Id: I00bde6564be6fb7c7f6d2ccb1faa7dd94e414635
(cherry picked from commit 00340194)
üst 57e86b66
...@@ -762,7 +762,11 @@ LwpCellBorderType LwpConnectedCellLayout::GetCellBorderType(sal_uInt16 nRow, sal ...@@ -762,7 +762,11 @@ LwpCellBorderType LwpConnectedCellLayout::GetCellBorderType(sal_uInt16 nRow, sal
} }
} }
if ( (nRow + nRowSpan) == pTableLayout->GetTable()->GetRow() ) LwpTable* pTable = pTableLayout->GetTable();
if (!pTable)
throw std::runtime_error("missing table");
if ( (nRow + nRowSpan) == pTable->GetRow())
{ {
bNoBottomBorder = false; bNoBottomBorder = false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment