| commit | ec7065bafc0a805b03a2b4d5522026f829c25522 | [log] |
|---|---|---|
| author | Khaled Hosny <khaled@libreoffice.org> | Thu Aug 10 10:11:22 2023 +0300 |
| committer | Michael Stahl <michael.stahl@allotropia.de> | Fri Aug 11 13:25:48 2023 +0200 |
| tree | f2b52a02cab14df1261523ca535aff43a6dd5924 | |
| parent | 6980f69c559861aba7279d5b90ae09f0347fa4d4 [diff] |
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: خالد حسني <khaled@libreoffice.org> (cherry picked from commit f681d37d7aab768b507ea48d34a985b8dc49391a) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155486 Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx index b2186a7..7fdfb3b 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());