starmath/source/view.cxx | 2 ++ 1 file changed, 2 insertions(+) New commits: commit fe3098b4c4b5b8099e43279044db9ae7a1e0999d Author: Khaled Hosny <kha...@libreoffice.org> AuthorDate: Sun Aug 27 15:06:14 2023 +0300 Commit: خالد حسني <kha...@libreoffice.org> CommitDate: Mon Sep 4 18:18:16 2023 +0200
tdf#134193: Fix RTL selection and cursor handling Change-Id: Ib9d7dd56d884aaca9b88a8b9403aeef30a9917d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156167 Tested-by: Jenkins Reviewed-by: خالد حسني <kha...@libreoffice.org> diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 6505031f13ba..85dccb711ec6 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -310,6 +310,7 @@ void SmGraphicWidget::SetDrawingArea(weld::DrawingArea* pDrawingArea) OutputDevice& rDevice = GetOutputDevice(); + rDevice.EnableRTL(GetDoc()->GetFormat().IsRightToLeft()); rDevice.SetBackground(SM_MOD()->GetColorConfig().GetColorValue(svtools::DOCCOLOR).nColor); if (comphelper::LibreOfficeKit::isActive()) @@ -2073,6 +2074,7 @@ void SmViewShell::Execute(SfxRequest& rReq) { bool bRTL = rReq.GetSlot() == SID_ATTR_PARA_RIGHT_TO_LEFT; GetDoc()->SetRightToLeft(bRTL); + GetGraphicWindow().GetGraphicWidget().GetOutputDevice().EnableRTL(bRTL); GetViewFrame().GetBindings().Invalidate(bRTL ? SID_ATTR_PARA_LEFT_TO_RIGHT : SID_ATTR_PARA_RIGHT_TO_LEFT); } break;