[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - sc/source

Pranam Lashkari (via logerrit) logerrit at kemper.freedesktop.org
Wed Feb 24 08:07:44 UTC 2021


 sc/source/ui/app/inputhdl.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 17ca3e1bf0fdb6f61e4e481e35d59185e0f62ca7
Author:     Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Tue Feb 23 20:35:34 2021 +0530
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Wed Feb 24 09:07:08 2021 +0100

    show reference range specific to only selected calc sheet
    
    Problem:
    when switching tab in online reference range would not change according to tabs
    this would show incorrect reference range
    
    Change-Id: I07e072a74b2925a25b7a4a50ce0c238308d99ebf
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111408
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>

diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 97b54526f20c..0c7e80720e0d 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -508,7 +508,10 @@ void ScInputHandler::UpdateLokReferenceMarks()
         long nX2 = rViewData.GetRefEndX();
         long nY1 = rViewData.GetRefStartY();
         long nY2 = rViewData.GetRefEndY();
-        long nTab = rViewData.GetTabNo();
+        long nTab = rViewData.GetRefStartZ();
+
+        if (rViewData.GetRefEndZ() == rViewData.GetTabNo())
+            nTab = rViewData.GetRefEndZ();
 
         PutInOrder(nX1, nX2);
         PutInOrder(nY1, nY2);


More information about the Libreoffice-commits mailing list