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

protect against missing Table Layout

Change-Id: Ie7f4cd2b411eb678642ea859d261b1b672752d94
üst 130eaf02
......@@ -121,8 +121,9 @@ LwpTable * LwpCellLayout::GetTable()
*/
void LwpCellLayout::SetCellMap()
{
// this function is called from LwpTableLayout, so it can't be NULL
GetTableLayout()->SetWordProCellMap(crowid, ccolid, this);
LwpTableLayout * pTableLayout = GetTableLayout();
if (pTableLayout)
pTableLayout->SetWordProCellMap(crowid, ccolid, this);
}
/**
* @short Get actual width of this cell layout
......
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