summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-06-25 04:14:17 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-06-25 04:15:40 +0200
commitcd8d068d1fde187cc83dc497ff27fc8e4e924d43 (patch)
treee1418e845e08b81d1b27d77218c4e37763b510c1
parent4f6d6912e9916496a1a54cea6df10f7529dca378 (diff)
repaint all cells if NULL is passed, fdo#51174
Change-Id: If58448fa040ad88db4edaa9aaefc771dbad0826b
-rw-r--r--sc/source/core/data/conditio.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx
index 15cb8ba1a38c..a5ed065141af 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -1489,7 +1489,15 @@ bool lcl_CutRange( ScRange& rRange, const ScRange& rOther )
void ScConditionalFormat::DoRepaint( const ScRange* pModified )
{
- pDoc->RepaintRange(*pModified);
+ if(pModified)
+ pDoc->RepaintRange(*pModified);
+ else
+ {
+ // all conditional format cells
+ size_t n = maRanges.size();
+ for(size_t i = 0; i < n; ++i)
+ pDoc->RepaintRange(*maRanges[i]);
+ }
}
void ScConditionalFormat::CompileAll()