diff options
author | Eike Rathke <erack@redhat.com> | 2017-01-18 23:08:37 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-01-18 23:08:45 +0100 |
commit | acbcec11940d245aabed93ca756ef9462e06f192 (patch) | |
tree | 8f389302fcd8a7c2f2fc14d4f89b7f10f00acdb7 /sc | |
parent | b8b657123cc508c906622d20669507628c93e104 (diff) |
bail out early if there are no notes
... which usually is the case, so don't unnecessarily create iterators and dive
into an empty mdds tree.
Change-Id: Iba345cd231d5911adefabc0584290834678a68f1
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/column4.cxx | 3 |
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; |