From 0751510c21fdbde9e75814a3cc75e6678fb12f02 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 6 Aug 2009 00:01:12 +0000 Subject: [PATCH] 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 --- src/univ/stdrend.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/univ/stdrend.cpp b/src/univ/stdrend.cpp index ef8af5c391..d9253ac5e3 100644 --- a/src/univ/stdrend.cpp +++ b/src/univ/stdrend.cpp @@ -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()); -- 2.50.0