sc/source/ui/view/gridwin4.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 2cb7c14eff5c4b2051c7039ba31239ee6a2a68f0
Author:     Dennis Francis <dennis.fran...@collabora.com>
AuthorDate: Wed Nov 17 17:13:16 2021 +0530
Commit:     Dennis Francis <dennis.fran...@collabora.com>
CommitDate: Thu Jan 27 11:22:26 2022 +0100

    lokCalcRTL: selections: lokclients need exact document coordinates
    
    so do not do horizontal mirroring.
    
    Change-Id: I93432002810dacfeb609268f436bdf2cfecb3a60
    (cherry picked from commit 241909beda0d8985667435127e16bdf902850932)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128894
    Tested-by: Jenkins
    Reviewed-by: Dennis Francis <dennis.fran...@collabora.com>

diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 1dc1bab5e5f7..febc8a0e3b8b 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -2194,7 +2194,8 @@ void ScGridWindow::GetRectsAnyFor(const ScMarkData 
&rMarkData,
     double nPPTX = mrViewData.GetPPTX();
     double nPPTY = mrViewData.GetPPTY();
     bool bLayoutRTL = rDoc.IsLayoutRTL( nTab );
-    tools::Long nLayoutSign = bLayoutRTL ? -1 : 1;
+    // LOK clients needs exact document coordinates, so don't horizontally 
mirror them.
+    tools::Long nLayoutSign = (!comphelper::LibreOfficeKit::isActive() && 
bLayoutRTL) ? -1 : 1;
 
     ScMarkData aMultiMark( rMarkData );
     aMultiMark.SetMarking( false );

Reply via email to