summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-12-26 04:09:31 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-12-26 04:16:58 +0100
commit7c528f40e0aea9386d175b007974c02d265f96c6 (patch)
treedbac20137970d3f92287def3e0f90fab50692988 /sc/source
parent53a5bf7529255e59d63645ee6a453ed56df39a9d (diff)
one more improvement around cond format rendering, fdo#57896
Change-Id: I5eb267ec2d1666edd53f5b9d58fd2a0cec044aa1
Diffstat (limited to 'sc/source')
-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