From 2cb7c14eff5c4b2051c7039ba31239ee6a2a68f0 Mon Sep 17 00:00:00 2001 From: Dennis Francis Date: Wed, 17 Nov 2021 17:13:16 +0530 Subject: 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 --- sc/source/ui/view/gridwin4.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sc/source/ui') 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 ); -- cgit