[Libreoffice-commits] .: Branch 'libreoffice-3-6' - sc/source
Markus Mohrhard
mmohrhard at kemper.freedesktop.org
Sun Jun 24 19:17:34 PDT 2012
sc/source/core/data/conditio.cxx | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
New commits:
commit cd8d068d1fde187cc83dc497ff27fc8e4e924d43
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Mon Jun 25 04:14:17 2012 +0200
repaint all cells if NULL is passed, fdo#51174
Change-Id: If58448fa040ad88db4edaa9aaefc771dbad0826b
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx
index 15cb8ba..a5ed065 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()
More information about the Libreoffice-commits
mailing list