diff --git a/include/wx/univ/button.h b/include/wx/univ/button.h index eaeda50566..ed8d21005c 100644 --- a/include/wx/univ/button.h +++ b/include/wx/univ/button.h @@ -98,6 +98,7 @@ public: protected: virtual void DoSetBitmap(const wxBitmap& bitmap, State which) wxOVERRIDE; + virtual wxBitmap DoGetBitmap(State which) const wxOVERRIDE; virtual void DoSetBitmapMargins(wxCoord x, wxCoord y) wxOVERRIDE; // common part of all ctors diff --git a/src/univ/button.cpp b/src/univ/button.cpp index 924d0407fb..7819391786 100644 --- a/src/univ/button.cpp +++ b/src/univ/button.cpp @@ -146,6 +146,11 @@ void wxButton::Click() // misc // ---------------------------------------------------------------------------- +wxBitmap wxButton::DoGetBitmap(State WXUNUSED(which)) const +{ + return m_bitmap; +} + void wxButton::DoSetBitmap(const wxBitmap& bitmap, State which) { // we support only one bitmap right now, although this wouldn't be