1 |
From 7c4571adca053a2eb6229d0519f05520af28bbf7 Mon Sep 17 00:00:00 2001 |
2 |
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com> |
3 |
Date: Mon, 14 Mar 2011 11:29:11 +0000 |
4 |
Subject: [PATCH] Resolves: rhbz#684620 crash with NULL pTableBox |
5 |
|
6 |
--- |
7 |
sw/source/core/crsr/swcrsr.cxx | 2 +- |
8 |
1 files changed, 1 insertions(+), 1 deletions(-) |
9 |
|
10 |
diff --git a/sw/source/core/crsr/swcrsr.cxx b/sw/source/core/crsr/swcrsr.cxx |
11 |
index afdcc92..2f731bf 100644 |
12 |
--- a/sw/source/core/crsr/swcrsr.cxx |
13 |
+++ b/sw/source/core/crsr/swcrsr.cxx |
14 |
@@ -1701,7 +1701,7 @@ BOOL SwCursor::LeftRight( BOOL bLeft, USHORT nCnt, USHORT nMode, |
15 |
if ( pTableBoxStartNode ) |
16 |
{ |
17 |
const SwTableBox* pTableBox = pTableBoxStartNode->GetTblBox(); |
18 |
- if ( pTableBox->getRowSpan() < 1 ) |
19 |
+ if ( pTableBox && pTableBox->getRowSpan() < 1 ) |
20 |
{ |
21 |
// Store the row span offset: |
22 |
mnRowSpanOffset = pTableBox->getRowSpan(); |
23 |
-- |
24 |
1.7.4.1 |
25 |
|
26 |
|