sc/source/core/data/column4.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit acbcec11940d245aabed93ca756ef9462e06f192 Author: Eike Rathke <[email protected]> Date: Wed Jan 18 23:08:37 2017 +0100 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 diff --git a/sc/source/core/data/column4.cxx b/sc/source/core/data/column4.cxx index b19f330..3e08a7f 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; _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
