summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/data/conditio.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx
index 3dcc3be53f9a..016c5e9422bc 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -1973,7 +1973,10 @@ void ScConditionalFormat::dumpInfo(rtl::OUStringBuffer& rBuf) const
void ScConditionalFormat::DoRepaint( const ScRange* pModified )
{
if(pModified)
- pDoc->RepaintRange(*pModified);
+ {
+ if(maRanges.Intersects(*pModified))
+ pDoc->RepaintRange(*pModified);
+ }
else
{
// all conditional format cells