]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix DrawStatusField() to work correctly with wxSB_FLAT style.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 6 Aug 2009 00:01:12 +0000 (00:01 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 6 Aug 2009 00:01:12 +0000 (00:01 +0000)
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

index ef8af5c39153da4ea9cd5a2a713b70191c2811cf..d9253ac5e35acd56a790167ca8a7009aad8df969 100644 (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);
         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());
 
 
     rectIn.Deflate(GetStatusBarFieldMargins());