summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/data/table5.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/data/table5.cxx b/sc/source/core/data/table5.cxx
index 1525371835c7..264bba83dc76 100644
--- a/sc/source/core/data/table5.cxx
+++ b/sc/source/core/data/table5.cxx
@@ -1195,6 +1195,10 @@ void ScTable::InvalidateTextWidth( const ScAddress* pAdrFrom, const ScAddress* p
SCROW nRow = aIter.getPos();
aIter.setValue(TEXTWIDTH_DIRTY);
ScBaseCell* pCell = aCol[nCol].GetCell(nRow);
+ if (pCell == 0)
+ {
+ continue;
+ }
if ( bNumFormatChanged )
pCell->SetScriptType( SC_SCRIPTTYPE_UNKNOWN );