summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-09-14 11:36:36 -0400
committerKohei Yoshida <kohei.yoshida@suse.com>2011-09-14 11:38:35 -0400
commit892f8b55781ccbe7e1f9613113b4721293fe4967 (patch)
tree96cbf4ec34aa6b1bff6d6dbde1604223996a29a4 /sc
parentb7998b6f663eb13ccdfaa7473dd1e9b9288771cd (diff)
fdo#35965: Mark all formula cells dirty when appending a new sheet.
Just like we do when inserting a sheet in the middle.
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/document.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index e06f650611d0..a41fdba69dd5 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -474,13 +474,16 @@ sal_Bool ScDocument::InsertTab( SCTAB nPos, const String& rName,
if ( pChartListenerCollection )
pChartListenerCollection->UpdateScheduledSeriesRanges();
- SetDirty();
bValid = true;
}
else
bValid = false;
}
}
+
+ if (bValid)
+ SetDirty();
+
return bValid;
}