diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 09:24:14 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 09:27:19 +0000 |
commit | 076ec3c436da1c74be70b6f804e421ff6bfd8bae (patch) | |
tree | 731c85d3fb2208e6dc962d4d4cbca16a1dfe620f /lotuswordpro | |
parent | afe00bba93d5c564dff44789c3a4daf5e47c1944 (diff) |
protect against missing Table Layout
Change-Id: Ie7f4cd2b411eb678642ea859d261b1b672752d94
(cherry picked from commit 08fe513b89ea5102a3a233ee0bac472dc8e6b219)
Reviewed-on: https://gerrit.libreoffice.org/20566
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpcelllayout.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwpcelllayout.cxx b/lotuswordpro/source/filter/lwpcelllayout.cxx index f630a01ec4f2..abe2c0297717 100644 --- a/lotuswordpro/source/filter/lwpcelllayout.cxx +++ b/lotuswordpro/source/filter/lwpcelllayout.cxx @@ -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 |