summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorPranam Lashkari <lpranam@collabora.com>2021-02-24 00:59:17 +0530
committerSzymon Kłos <szymon.klos@collabora.com>2021-02-24 15:36:07 +0100
commit8fd3d2a1ed6e64cfeac49b9a1758d1a320371f74 (patch)
tree170b20a4091fbe904389f7f2a7187098b96fdbd5 /sc
parent3e885c29ff1a295a20fdb8688d2875dd2a5fccd8 (diff)
avoid LOK text selection update when reference cell is in different tab
Change-Id: I511b9c5a27f97b6e14e9a844179c27a96997abe1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111346 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/app/inputhdl.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 0c7e80720e0d..7e0bb9272970 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -3452,13 +3452,16 @@ void ScInputHandler::SetReference( const ScRange& rRef, const ScDocument* pDoc )
else
aRefStr = rRef.Format(ScRefFlags::VALID, pDoc, aAddrDetails);
}
+ bool bLOKShowSelect = true;
+ if(comphelper::LibreOfficeKit::isActive() && pRefViewSh->GetViewData().GetRefTabNo() != pRefViewSh->GetViewData().GetTabNo())
+ bLOKShowSelect = false;
if (pTableView || pTopView)
{
if (pTableView)
- pTableView->InsertText( aRefStr, true );
+ pTableView->InsertText( aRefStr, true, bLOKShowSelect );
if (pTopView)
- pTopView->InsertText( aRefStr, true );
+ pTopView->InsertText( aRefStr, true, bLOKShowSelect );
DataChanged();
}