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

Caolán McNamara caolanm at redhat.com
Sat Dec 12 12:57:12 PST 2015


 lotuswordpro/source/filter/lwpcelllayout.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 0034019480167d50df33865389a6d21e8d5b9cec
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Dec 12 20:56:36 2015 +0000

    guard against missing table
    
    Change-Id: I00bde6564be6fb7c7f6d2ccb1faa7dd94e414635

diff --git a/lotuswordpro/source/filter/lwpcelllayout.cxx b/lotuswordpro/source/filter/lwpcelllayout.cxx
index 2e55f3d..da49507 100644
--- a/lotuswordpro/source/filter/lwpcelllayout.cxx
+++ b/lotuswordpro/source/filter/lwpcelllayout.cxx
@@ -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;
     }


More information about the Libreoffice-commits mailing list