Kaydet (Commit) acbcec11 authored tarafından Eike Rathke's avatar Eike Rathke

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
üst b8b65712
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment