X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7ef8bfc4c75374ffd4de538cdeaa0f81b69bf61f..ee65598f95309d64d69cfb4dd4191b3f567551fb:/src/univ/button.cpp?ds=sidebyside 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); }