summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-12-26 04:09:31 +0100
committerNoel Power <noel.power@suse.com>2013-01-15 11:26:38 +0000
commitf0b733be07a8ea79b65489e0a46b86736436185c (patch)
treede0f64a682b4e705cd1dbe9a823ce3ef02b89124
parent51bba79d8620f041e643c0922b906263859e9846 (diff)
one more improvement around cond format rendering, fdo#57896
Change-Id: I5eb267ec2d1666edd53f5b9d58fd2a0cec044aa1 Reviewed-on: https://gerrit.libreoffice.org/1684 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
-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 0ab670bdea3e..1a056eabf2b2 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -1520,7 +1520,10 @@ bool lcl_CutRange( ScRange& rRange, const ScRange& rOther )
void ScConditionalFormat::DoRepaint( const ScRange* pModified )
{
if(pModified)
- pDoc->RepaintRange(*pModified);
+ {
+ if(maRanges.Intersects(*pModified))
+ pDoc->RepaintRange(*pModified);
+ }
else
{
// all conditional format cells