summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/column4.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/data/column4.cxx b/sc/source/core/data/column4.cxx
index b19f33069d89..3e08a7fea028 100644
--- a/sc/source/core/data/column4.cxx
+++ b/sc/source/core/data/column4.cxx
@@ -620,6 +620,9 @@ void ScColumn::CreateAllNoteCaptions()
void ScColumn::ForgetNoteCaptions( SCROW nRow1, SCROW nRow2, bool bPreserveData )
{
+ if (maCellNotes.empty())
+ return;
+
if (!ValidRow(nRow1) || !ValidRow(nRow2))
return;