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
This commit is contained in:
parent
a7f61f762d
commit
1d6e57680c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user