diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-09-17 14:37:30 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-09-17 14:56:49 +0200 |
commit | e6bca122176cdb2b6e822fc933f159dc3e3c8d46 (patch) | |
tree | 8fd7f6d360b50e8b7c94455e14675a894d8e86fc /sc | |
parent | 576ba0c0c082dfe50c4b97292093b833443c3756 (diff) |
don't delete ranges in ScRangeList::UpdateReference, fdo#54498
Change-Id: Id6a1f9f514c8221e5ca79e1eaafe69916fc1d1bd
Diffstat (limited to 'sc')
-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 de87e6cd3121..2f90f39f6123 100644 --- a/sc/source/core/tool/rangelst.cxx +++ b/sc/source/core/tool/rangelst.cxx @@ -417,14 +417,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) { |