diff options
author | Dennis Francis <dennis.francis@collabora.com> | 2021-11-30 13:42:33 +0530 |
---|---|---|
committer | Dennis Francis <dennis.francis@collabora.com> | 2022-02-02 10:15:30 +0100 |
commit | 8839705b6f719f8f3bd5275eac57b78e26e4050b (patch) | |
tree | 0948cb21d3f4491a067a1b6d28a9d10881142003 /sc | |
parent | cc827250ed249202afd97a84db13575648ed9b49 (diff) |
lokCalcRTL: RTL negation for shape insertion
Conflicts:
sc/source/ui/view/tabvwsh2.cxx
Change-Id: I8e3bb21fadd05a7b67acce34bfdc354fefba076b
(cherry picked from commit 18038bd35c01abf1aad69932c4a7e75988921289)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129192
Tested-by: Jenkins
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/tabvwsh2.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/tabvwsh2.cxx b/sc/source/ui/view/tabvwsh2.cxx index 0c3b35f56442..f61b8652064b 100644 --- a/sc/source/ui/view/tabvwsh2.cxx +++ b/sc/source/ui/view/tabvwsh2.cxx @@ -337,12 +337,13 @@ void ScTabViewShell::ExecDraw(SfxRequest& rReq) { GetViewFrame()->GetDispatcher()->Execute(SID_OBJECT_SELECT, SfxCallMode::ASYNCHRON); ScViewData& rViewData = GetViewData(); + tools::Long nLayoutSign = rViewData.GetDocument().IsLayoutRTL(rViewData.GetTabNo()) ? -1 : 1; aInsertPos = rViewData.getLOKVisibleArea().Center(); if (comphelper::LibreOfficeKit::isCompatFlagSet( comphelper::LibreOfficeKit::Compat::scPrintTwipsMsgs)) aInsertPos = rViewData.GetPrintTwipsPosFromTileTwips(aInsertPos); - aInsertPos.setX(convertTwipToMm100(aInsertPos.X())); + aInsertPos.setX(nLayoutSign * convertTwipToMm100(aInsertPos.X())); aInsertPos.setY(convertTwipToMm100(aInsertPos.Y())); aInsertPos.AdjustX( -sal_Int32(nDefaultObjectSizeWidth / 2) ); |