From 3df583520ee03bad42df09db7dde4c0c683a228b Mon Sep 17 00:00:00 2001 From: Dennis Francis Date: Tue, 30 Nov 2021 16:06:51 +0530 Subject: lokCalcRTL: negate the +ve shape handle X coordinate... ...from lok client as all shape X coordinates are negative in lok-RTL mode. Change-Id: Ic4ba064888901109c85760bb0afda609b5d5942c --- sc/source/ui/drawfunc/drawsh.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sc/source/ui/drawfunc/drawsh.cxx b/sc/source/ui/drawfunc/drawsh.cxx index a0bcc3a78a3b..278a063c6c7b 100644 --- a/sc/source/ui/drawfunc/drawsh.cxx +++ b/sc/source/ui/drawfunc/drawsh.cxx @@ -60,6 +60,7 @@ #include #include #include +#include SFX_IMPL_INTERFACE(ScDrawShell, SfxShell) @@ -216,7 +217,9 @@ void ScDrawShell::ExecDrawAttr( SfxRequest& rReq ) const sal_uLong handleNum = handleNumItem->GetValue(); const sal_uLong newPosX = convertTwipToMm100(newPosXTwips->GetValue()); const sal_uLong newPosY = convertTwipToMm100(newPosYTwips->GetValue()); - pView->MoveShapeHandle(handleNum, Point(newPosX, newPosY), OrdNum ? OrdNum->GetValue() : -1); + + bool bNegateX = comphelper::LibreOfficeKit::isActive() && rViewData.GetDocument().IsLayoutRTL(rViewData.GetTabNo()); + pView->MoveShapeHandle(handleNum, Point(bNegateX ? -newPosX : newPosX, newPosY), OrdNum ? OrdNum->GetValue() : -1); } } break; -- cgit