sc/source/ui/app/inputhdl.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 79b29984a114b6eca76c49ef7b9841a5b5de74f4 Author: Pranam Lashkari <lpra...@collabora.com> AuthorDate: Tue Feb 23 20:35:34 2021 +0530 Commit: Pranam Lashkari <lpra...@collabora.com> CommitDate: Fri Apr 2 19:48:36 2021 +0200 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 <lpra...@collabora.com> (cherry picked from commit d03f4f5838093013ddb201e352f0cb7aaaa26453) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113535 Tested-by: Pranam Lashkari <lpra...@collabora.com> diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index 277bc2d53406..96f90e672afe 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -503,7 +503,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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits