Fix DrawStatusField() to work correctly with wxSB_FLAT style.

It didn't draw the text at all before.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-08-06 00:01:12 +00:00
parent 1454b44261
commit 0751510c21

View File

@@ -892,6 +892,8 @@ void wxStdRenderer::DrawStatusField(wxDC& dc,
DrawBorder(dc, wxBORDER_RAISED, rect, flags, &rectIn);
else if ( style != wxSB_FLAT )
DrawBorder(dc, wxBORDER_STATIC, rect, flags, &rectIn);
else
rectIn = rect;
rectIn.Deflate(GetStatusBarFieldMargins());