[Libreoffice-commits] .: sw/source

Caolán McNamara caolan at kemper.freedesktop.org
Mon Mar 14 04:29:26 PDT 2011


 sw/source/core/crsr/swcrsr.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7c4571adca053a2eb6229d0519f05520af28bbf7
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Mar 14 11:29:11 2011 +0000

    Resolves: rhbz#684620 crash with NULL pTableBox

diff --git a/sw/source/core/crsr/swcrsr.cxx b/sw/source/core/crsr/swcrsr.cxx
index afdcc92..2f731bf 100644
--- a/sw/source/core/crsr/swcrsr.cxx
+++ b/sw/source/core/crsr/swcrsr.cxx
@@ -1701,7 +1701,7 @@ BOOL SwCursor::LeftRight( BOOL bLeft, USHORT nCnt, USHORT nMode,
         if ( pTableBoxStartNode )
         {
             const SwTableBox* pTableBox = pTableBoxStartNode->GetTblBox();
-            if ( pTableBox->getRowSpan() < 1 )
+            if ( pTableBox && pTableBox->getRowSpan() < 1 )
             {
                 // Store the row span offset:
                 mnRowSpanOffset = pTableBox->getRowSpan();


More information about the Libreoffice-commits mailing list