X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7ef8bfc4c75374ffd4de538cdeaa0f81b69bf61f..dbcbe229628c7667da2b6257198467d4f09ab28d:/src/univ/button.cpp diff --git a/src/univ/button.cpp b/src/univ/button.cpp index a6438e0d51..65a5b69c9b 100644 --- a/src/univ/button.cpp +++ b/src/univ/button.cpp @@ -152,7 +152,11 @@ wxSize wxButton::DoGetBestClientSize() const void wxButton::DoDraw(wxControlRenderer *renderer) { - renderer->DrawButtonBorder(); + if ( !(GetWindowStyle() & wxBORDER_NONE) ) + { + renderer->DrawButtonBorder(); + } + renderer->DrawLabel(m_bitmap, m_marginBmpX, m_marginBmpY); }