summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-11-15 16:55:49 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2011-11-15 16:55:49 -0500
commit3b1e88a8eb6b3f9da7c899a791e491db21d1bbdc (patch)
tree41708b78fae9e937d3fcb406b59ebd400092d2ec /sc/source/ui/view
parent5fc37762b68c9b94734b84546fce2309ff7bb2c0 (diff)
Reset formula cell's changed flag only for those within visible range.
Especially avoid marking all cells in all sheets which would cause a performance problem.
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r--sc/source/ui/view/gridwin4.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 1db7cd9b6205..1ee84cf3a0d7 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -885,6 +885,9 @@ void ScGridWindow::Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, ScUpdateMod
--nPaintCount;
if (!nPaintCount)
CheckNeedsRepaint();
+
+ // Flag drawn formula cells "unchanged".
+ pDoc->ResetChanged(ScRange(nX1,nY1,nTab,nX2,nY2,nTab));
}
void ScGridWindow::CheckNeedsRepaint()