summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.com>2021-11-17 16:28:43 +0530
committerDennis Francis <dennis.francis@collabora.com>2022-01-26 11:11:35 +0100
commit83d8a49c2a4357e1dcfb4b046da8a57db7bcb4ed (patch)
treed4c1919f24b991cccb6b5faeffc5ae70df92a196 /sc/source/ui
parent7c5bb09b0b082dbba57262e11162dd6fa077f253 (diff)
lokCalcRTL: no internal width based mirroring in GetPosFromPixel
The gridwindow width is historically not synced with the visible area in client. Mirroring is not necessary when the client is already sending the true document coordinates of the mouse events etc. Change-Id: I74573be406c512324f4c5db0c53fbc12374b88c8 (cherry picked from commit ef3c67beb96df80179b46bb6d5116d4a5cab7f77) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128893 Tested-by: Jenkins Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/view/viewdata.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index 5601f4c5d43b..422b56074ae4 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -2775,10 +2775,13 @@ void ScViewData::GetPosFromPixel( tools::Long nClickX, tools::Long nClickY, ScSp
if (mrDoc.IsLayoutRTL(nForTab))
{
- // mirror horizontal position
- if (pView)
- aScrSize.setWidth( pView->GetGridWidth(eHWhich) );
- nClickX = aScrSize.Width() - 1 - nClickX;
+ if (!comphelper::LibreOfficeKit::isActive())
+ {
+ // mirror horizontal position
+ if (pView)
+ aScrSize.setWidth( pView->GetGridWidth(eHWhich) );
+ nClickX = aScrSize.Width() - 1 - nClickX;
+ }
}
SCCOL nStartPosX = GetPosX(eHWhich, nForTab);