From 1d6e57680c6c506a9ebc717a50acbfe687cad60d Mon Sep 17 00:00:00 2001 From: Jamie Gadd Date: Thu, 23 Feb 2006 13:50:39 +0000 Subject: [PATCH] Fix bug where labels were multicoloured if their length > box width using XP with a non-default colour. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/statbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/statbox.cpp b/src/msw/statbox.cpp index 07b6e67c9f..bbd39a04dc 100644 --- a/src/msw/statbox.cpp +++ b/src/msw/statbox.cpp @@ -386,7 +386,7 @@ void wxStaticBox::PaintForeground(wxDC& dc, const RECT& WXUNUSED(rc)) const int x = 9; // TODO: RTL? - RECT rc = { x, 0, GetSize().x - x, y }; + RECT rc = { x, 0, GetSize().x, y }; const wxString label = GetLabel(); ::DrawText(hdc, label, label.length(), &rc, DT_SINGLELINE | DT_VCENTER);