summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.com>2021-11-17 17:13:16 +0530
committerAndras Timar <andras.timar@collabora.com>2022-01-11 11:18:06 +0100
commit241909beda0d8985667435127e16bdf902850932 (patch)
treebfcc8135e4b54be1999cf913de642903d57cba23
parentef3c67beb96df80179b46bb6d5116d4a5cab7f77 (diff)
lokCalcRTL: selections: lokclients need exact document coordinates
so do not do horizontal mirroring. Change-Id: I93432002810dacfeb609268f436bdf2cfecb3a60
-rw-r--r--sc/source/ui/view/gridwin4.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 7dbbd94fc82a..6a644786906d 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -2119,7 +2119,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 );