diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-10-02 00:41:08 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-10-02 00:55:31 +0200 |
commit | 6eb8634a9f62bfe486ecd2f46bae37d3d930d5ef (patch) | |
tree | 5c797684089b062a626af48556754e5ed3c22246 /sc | |
parent | c3e6c81eb0b1b4d5ca47dd1d266be97a602e015b (diff) |
iterating here is wrong, join will already merge all necessary ranges
Change-Id: I0653cdc8675c584fa11ef90a84b79a636bd98408
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/rangelst.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/core/tool/rangelst.cxx b/sc/source/core/tool/rangelst.cxx index b7347f62dcbd..e4b38679311d 100644 --- a/sc/source/core/tool/rangelst.cxx +++ b/sc/source/core/tool/rangelst.cxx @@ -465,8 +465,7 @@ bool ScRangeList::UpdateReference( if( nDx < 0 || nDy < 0 ) { size_t n = maRanges.size(); - for(size_t i = n-1; i > 0; --i) - Join(*maRanges[i], true); + Join(*maRanges[n-1], true); } } |