vcl/source/window/status.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 34cc54a86ca40e4611b375168dd4f882c5022570
Author: Jonathan Clark <[email protected]>
AuthorDate: Wed Feb 18 22:55:22 2026 -0700
Commit: Adolfo Jayme Barrientos <[email protected]>
CommitDate: Fri Feb 20 15:12:47 2026 +0100
tdf#83350 vcl: Fix RTL UI status bar label positioning
Fixes a copy-paste error in one branch of StatusBar::ImplDrawItem. This
error caused status bar labels to be rendered as LTR even with RTL UI,
which in turn caused most of the labels to overflow their clip regions
to the left.
Change-Id: I8531bf63772b405e19474519921a8babd7cf1be2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199681
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <[email protected]>
(cherry picked from commit 00b2fe71be4aa396c8ace272dd6266f9a9bddd2e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199790
Reviewed-by: Adolfo Jayme Barrientos <[email protected]>
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index 16e5d6ec4e0c..5080010f91a2 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -411,11 +411,13 @@ void StatusBar::ImplDrawItem(vcl::RenderContext&
rRenderContext, bool bOffScreen
if (bOffScreen)
{
+ mpImplData->mpVirDev->EnableRTL(IsRTLEnabled());
mpImplData->mpVirDev->DrawText(
aTextPos,
pItem->maText,
0, -1, nullptr, nullptr,
pGlyphs );
+ mpImplData->mpVirDev->EnableRTL(false);
}
else
{