sc/source/ui/view/viewdata.cxx |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

New commits:
commit 83d8a49c2a4357e1dcfb4b046da8a57db7bcb4ed
Author:     Dennis Francis <dennis.fran...@collabora.com>
AuthorDate: Wed Nov 17 16:28:43 2021 +0530
Commit:     Dennis Francis <dennis.fran...@collabora.com>
CommitDate: Wed Jan 26 11:11:35 2022 +0100

    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.fran...@collabora.com>

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);

Reply via email to