libreoffice/libreoffice-3.3.1.2-crash-with-NULL-pTableBox.patch

12 lines
521 B
Diff
Raw Normal View History

--- sw/source/core/crsr/swcrsr.cxx 2010-11-25 20:17:34.000000000 +0100
+++ sw/source/core/crsr/swcrsr.cxx-gil 2011-03-15 02:18:01.000000000 +0100
@@ -1703,7 +1703,7 @@
if ( pTableBoxStartNode )
{
const SwTableBox* pTableBox = pTableBoxStartNode->GetTblBox();
- if ( pTableBox->getRowSpan() < 1 )
+ if ( pTableBox && pTableBox->getRowSpan() < 1 )
{
// Store the row span offset:
mnRowSpanOffset = pTableBox->getRowSpan();