summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-28 02:59:39 +0200
committerNoel Power <noel.power@suse.com>2012-08-28 09:45:57 +0100
commit9f14fa5f5f6c6edd596a0bfaa9a24facb5c6d83f (patch)
treeecd927ff2398a41a2a3febcfbeb492003145fb4a
parent2a6ada4a4dab3edb0896ac5665623c0d4727baf7 (diff)
don't crash for invalid repaint ranges in cond formats, fdo#53839
Change-Id: I83cbb2574849c69fba3ca315d7507358654ff2b9
-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 97ffd6122d3b..a5e637c385cc 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -1126,7 +1126,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 );
}
}