[Libreoffice-commits] core.git: sc/source
Pranam Lashkari (via logerrit)
logerrit at kemper.freedesktop.org
Wed Feb 24 09:32:30 UTC 2021
sc/source/ui/app/inputhdl.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit d03f4f5838093013ddb201e352f0cb7aaaa26453
Author: Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Tue Feb 23 20:35:34 2021 +0530
Commit: Pranam Lashkari <lpranam at collabora.com>
CommitDate: Wed Feb 24 10:31:47 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/+/111409
Tested-by: Jenkins
Reviewed-by: Pranam Lashkari <lpranam at collabora.com>
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 81c434a7055f..7465205fa089 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -502,7 +502,10 @@ void ScInputHandler::UpdateLokReferenceMarks()
tools::Long nX2 = rViewData.GetRefEndX();
tools::Long nY1 = rViewData.GetRefStartY();
tools::Long nY2 = rViewData.GetRefEndY();
- tools::Long nTab = rViewData.GetTabNo();
+ tools::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