sc/source/core/data/conditio.cxx |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

New commits:
commit 9bd77a00490090fa9b43cd1ad270e8847f6e22fe
Author: Markus Mohrhard <markus.mohrh...@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 7a555a6..60b4704 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -1486,7 +1486,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()
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to