[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - lotuswordpro/source

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


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

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

    guard against missing table
    
    Change-Id: I00bde6564be6fb7c7f6d2ccb1faa7dd94e414635
    (cherry picked from commit 0034019480167d50df33865389a6d21e8d5b9cec)

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