diff options
author | Eike Rathke <erack@redhat.com> | 2017-06-27 15:31:34 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-06-27 15:31:42 +0200 |
commit | 16e625c92f73eae7b95c788e2545d01dc9b05680 (patch) | |
tree | 4c213e066b2e40ed8b4300a72ca1fbc5a6713450 | |
parent | cab5c453063318766257a5069e4ab26d3fcf0785 (diff) |
Sticky here means we can bail out early, tdf#108788 follow-up
Change-Id: I475b95321a2a49148073b7c6aeeb28b7c5b73750
-rw-r--r-- | sc/source/core/tool/token.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx index 0538a1097888..2f6a0e49c5db 100644 --- a/sc/source/core/tool/token.cxx +++ b/sc/source/core/tool/token.cxx @@ -3036,6 +3036,17 @@ sc::RefUpdateResult ScTokenArray::AdjustReferenceOnShift( const sc::RefUpdateCon // new (empty) cell range is shifted in and // may change the calculation result. aRes.mbValueChanged = true; + // Sticky when intersecting the selected + // range means also that the other + // conditions below are not met, + // specifically not the + // if (rCxt.maRange.In(aAbs)) + // that is able to update the reference, + // but aSelectedRange does not intersect + // with rCxt.maRange so that can't happen + // and we can bail out early without + // updating the reference. + break; } } } |