X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/827e7a487462cb19677fcc50f3d3eb047651e95e..960cb7d715a21b40d9d2472638a237b210683088:/src/mac/bmpbuttn.cpp diff --git a/src/mac/bmpbuttn.cpp b/src/mac/bmpbuttn.cpp index 9c16d3672e..4f06731513 100644 --- a/src/mac/bmpbuttn.cpp +++ b/src/mac/bmpbuttn.cpp @@ -29,7 +29,9 @@ bool wxBitmapButton::Create(wxWindow *parent, wxWindowID id, const wxBitmap& bit const wxValidator& validator, const wxString& name) { - if ( !wxBitmapButtonBase::Create(parent, id, _T(""), pos, size, + // since bitmapbuttonbase is subclass of button calling wxBitmapButtonBase::Create + // essentially creates an additional button + if ( !wxControl::Create(parent, id, pos, size, style, validator, name) ) return false;