vcl/source/window/status.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 00b2fe71be4aa396c8ace272dd6266f9a9bddd2e
Author: Jonathan Clark <[email protected]>
AuthorDate: Wed Feb 18 22:55:22 2026 -0700
Commit: Jonathan Clark <[email protected]>
CommitDate: Thu Feb 19 09:32:00 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]>
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index f3dc44b4a193..11ece7f0f38f 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -413,11 +413,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
{