]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/bmpbuttn.cpp
Need to use the same instance handles
[wxWidgets.git] / src / mac / bmpbuttn.cpp
index 9c16d3672ec1447711660173aed72f9a713e4fec..4f067315139fa05c96fb3363b2f78ed597a8aad3 100644 (file)
@@ -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;