starmath/source/ElementsDockingWindow.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit ca78e610e1a4d20021d204c3d7857e6edb591fa6
Author:     Khaled Hosny <kha...@libreoffice.org>
AuthorDate: Thu Aug 10 10:11:22 2023 +0300
Commit:     خالد حسني <kha...@libreoffice.org>
CommitDate: Thu Aug 10 12:23:37 2023 +0200

    tdf#80467: Fix math rendering in elements dock with RTL UI
    
    Make sure to disable RTL on the OutputDevice, otherwise the math will be
    rendered right-to-left without even mirroring the parenthesis.
    
    Change-Id: Iea43dbc0d7efe914120d5cc1605522254344b4fc
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155538
    Tested-by: Jenkins
    Reviewed-by: خالد حسني <kha...@libreoffice.org>

diff --git a/starmath/source/ElementsDockingWindow.cxx 
b/starmath/source/ElementsDockingWindow.cxx
index b2186a7ecbf9..7fdfb3b3ec49 100644
--- a/starmath/source/ElementsDockingWindow.cxx
+++ b/starmath/source/ElementsDockingWindow.cxx
@@ -532,6 +532,7 @@ void SmElementsControl::addElement(const OUString& 
aElementVisual, const OUStrin
     pDevice->SetDrawMode(DrawModeFlags::Default);
     pDevice->SetLayoutMode(vcl::text::ComplexTextLayoutFlags::Default);
     pDevice->SetDigitLanguage(LANGUAGE_ENGLISH);
+    pDevice->EnableRTL(false);
 
     pDevice->SetBackground(GetControlBackground());
     pDevice->SetTextColor(GetTextColor());

Reply via email to