Kaydet (Commit) 6eb8634a authored tarafından Markus Mohrhard's avatar Markus Mohrhard

iterating here is wrong, join will already merge all necessary ranges

Change-Id: I0653cdc8675c584fa11ef90a84b79a636bd98408
üst c3e6c81e
...@@ -465,8 +465,7 @@ bool ScRangeList::UpdateReference( ...@@ -465,8 +465,7 @@ bool ScRangeList::UpdateReference(
if( nDx < 0 || nDy < 0 ) if( nDx < 0 || nDy < 0 )
{ {
size_t n = maRanges.size(); size_t n = maRanges.size();
for(size_t i = n-1; i > 0; --i) Join(*maRanges[n-1], true);
Join(*maRanges[i], true);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment