From ffabb347f9bce6d52e13d2e27dcfaf3a47ab66b4 Mon Sep 17 00:00:00 2001 From: Jamie Gadd Date: Wed, 20 Sep 2006 12:05:49 +0000 Subject: [PATCH] Fix label positioning when text is LTR. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/statbox.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/msw/statbox.cpp b/src/msw/statbox.cpp index df9cec55e2..ec135e4af7 100644 --- a/src/msw/statbox.cpp +++ b/src/msw/statbox.cpp @@ -455,7 +455,8 @@ void wxStaticBox::PaintForeground(wxDC& dc, const RECT& rc) // now draw the text if ( !rtl ) { - ::DrawText(hdc, label, label.length(), &dimensions, + RECT rc2 = { x, 0, x + width, y }; + ::DrawText(hdc, label, label.length(), &rc2, DT_SINGLELINE | DT_VCENTER); } else // RTL -- 2.50.0