summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-28 02:59:39 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-28 15:31:57 +0200
commit309b4e24d2507a93a0825dff2a6df13859e9487e (patch)
treeece37d42f53b0089e3c2a6ddf52daea93ab07a20 /sc
parentfd1fad4f4228630fa244820e5f0314c5835c5333 (diff)
don't crash for invalid repaint ranges in cond formats, fdo#53839
Change-Id: I83cbb2574849c69fba3ca315d7507358654ff2b9
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/conditio.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx
index 1438a788c620..4a842fb1ca2b 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -1123,7 +1123,7 @@ void ScConditionEntry::SourceChanged( const ScAddress& rChanged )
ScRange aPaint( nCol1,nRow1,nTab1, nCol2,nRow2,nTab2 );
// kein Paint, wenn es nur die Zelle selber ist
- if ( aPaint.aStart != rChanged || aPaint.aEnd != rChanged )
+ if ( aPaint.IsValid() && (aPaint.aStart != rChanged || aPaint.aEnd != rChanged ))
DataChanged( &aPaint );
}
}