Kaydet (Commit) 4e90b438 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Andras Timar

protect against missing Table Layout

Change-Id: Ie7f4cd2b411eb678642ea859d261b1b672752d94
(cherry picked from commit 08fe513b)
Reviewed-on: https://gerrit.libreoffice.org/20567Reviewed-by: 's avatarDavid Tardon <dtardon@redhat.com>
Tested-by: 's avatarDavid Tardon <dtardon@redhat.com>
(cherry picked from commit 78e612e2)
üst 9069b159
......@@ -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