[Libreoffice-commits] core.git: lotuswordpro/source

Caolán McNamara caolanm at redhat.com
Thu Dec 10 01:24:47 PST 2015


 lotuswordpro/source/filter/lwpcelllayout.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 08fe513b89ea5102a3a233ee0bac472dc8e6b219
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Dec 10 09:24:14 2015 +0000

    protect against missing Table Layout
    
    Change-Id: Ie7f4cd2b411eb678642ea859d261b1b672752d94

diff --git a/lotuswordpro/source/filter/lwpcelllayout.cxx b/lotuswordpro/source/filter/lwpcelllayout.cxx
index f630a01..abe2c02 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


More information about the Libreoffice-commits mailing list