[Libreoffice-commits] core.git: sc/source

Eike Rathke erack at redhat.com
Tue Jun 27 13:32:25 UTC 2017


 sc/source/core/tool/token.cxx |   11 +++++++++++
 1 file changed, 11 insertions(+)

New commits:
commit 16e625c92f73eae7b95c788e2545d01dc9b05680
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Jun 27 15:31:34 2017 +0200

    Sticky here means we can bail out early, tdf#108788 follow-up
    
    Change-Id: I475b95321a2a49148073b7c6aeeb28b7c5b73750

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;
                                 }
                             }
                         }


More information about the Libreoffice-commits mailing list