diff options
Diffstat (limited to 'sc/source/core/data/table3.cxx')
-rw-r--r-- | sc/source/core/data/table3.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx index a668a2c9a166..d1ef841faaee 100644 --- a/sc/source/core/data/table3.cxx +++ b/sc/source/core/data/table3.cxx @@ -377,6 +377,10 @@ short ScTable::CompareCell( sal_uInt16 nSort, short nRes = 0; CellType eType1 = CELLTYPE_NONE, eType2 = CELLTYPE_NONE; + if (pCell1) + eType1 = pCell1->GetCellType(); + if (pCell2) + eType2 = pCell2->GetCellType(); if (pCell1) { |