diff options
author | Pranam Lashkari <lpranam@collabora.com> | 2021-02-23 20:35:34 +0530 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-02-25 10:31:53 +0100 |
commit | b5e14a769a25fb28f91f3ffa7c04140e831722f4 (patch) | |
tree | 2cd58d576ee89e40077c908b1fe6065e0f0c9585 /sc/source/ui/app/inputhdl.cxx | |
parent | 110876b8a4c63d113d824122279479b4b81393d8 (diff) |
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@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sc/source/ui/app/inputhdl.cxx')
-rw-r--r-- | sc/source/ui/app/inputhdl.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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); |