X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/01283acee2cbaa0eb6ab88a50bebd2e82b11f0bb..07aaf32633ecf18ec3edfbb41793a112914792d0:/src/generic/statusbr.cpp diff --git a/src/generic/statusbr.cpp b/src/generic/statusbr.cpp index 819ccf3fb2..075c96ba93 100644 --- a/src/generic/statusbr.cpp +++ b/src/generic/statusbr.cpp @@ -291,10 +291,10 @@ void wxStatusBarGeneric::DrawField(wxDC& dc, int i, int textHeight) return; // happens when the status bar is shrunk in a very small area! int style = m_panes[i].GetStyle(); - if (style != wxSB_FLAT) + if (style == wxSB_RAISED || style == wxSB_SUNKEN) { // Draw border - // For wxSB_NORMAL: paint a grey background, plus 3-d border (one black rectangle) + // For wxSB_SUNKEN: paint a grey background, plus 3-d border (one black rectangle) // Inside this, left and top sides (dark grey). Bottom and right (white). // Reverse it for wxSB_RAISED