diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-09-24 17:09:31 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-09-24 23:12:48 +0200 |
commit | 5343c2fc6d00c75226ddb78b5300d3e34db53ddb (patch) | |
tree | b5ebd1ca90a4dce67ed98cfaf774a8cf44bad820 | |
parent | fdo#49819, fdo#54609: Do not consider timestamp differences as corruption (diff) | |
download | core-5343c2fc6d00c75226ddb78b5300d3e34db53ddb.tar.gz core-5343c2fc6d00c75226ddb78b5300d3e34db53ddb.zip |
fix crash when updating conditional formats, fdo#54498
This opens an old bug that deleting the last column/row will not work
but this is a minor bug compared to the crash. A fix for all bugs will
be hopefully available in 3.6.3
Change-Id: Icc38e4987905062b9780292f0480428411db5f3a
Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
Signed-off-by: Kohei Yoshida <kohei.yoshida@gmail.com>
Signed-off-by: Noel Power <noel.power@suse.com>
-rw-r--r-- | sc/source/core/tool/rangelst.cxx | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sc/source/core/tool/rangelst.cxx b/sc/source/core/tool/rangelst.cxx index 88f9727ad926..60505d70349a 100644 --- a/sc/source/core/tool/rangelst.cxx +++ b/sc/source/core/tool/rangelst.cxx @@ -407,14 +407,6 @@ bool ScRangeList::UpdateReference( SCTAB nTab2; rWhere.GetVars( nCol1, nRow1, nTab1, nCol2, nRow2, nTab2 ); - // delete all entries that are fully deleted - if( eUpdateRefMode == URM_INSDEL && (nDx < 0 || nDy < 0) ) - { - vector<ScRange*>::iterator itr = std::remove_if(maRanges.begin(), maRanges.end(), FindDeletedRange(nDx, nDy)); - for_each(itr, maRanges.end(), ScDeleteObjectByPtr<ScRange>()); - maRanges.erase(itr, maRanges.end()); - } - vector<ScRange*>::iterator itr = maRanges.begin(), itrEnd = maRanges.end(); for (; itr != itrEnd; ++itr) { |