]> git.saurik.com Git - wxWidgets.git/commitdiff
ghost button fix (was calling another baseclass create)
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 10 Sep 2003 07:23:55 +0000 (07:23 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 10 Sep 2003 07:23:55 +0000 (07:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/bmpbuttn.cpp
src/mac/carbon/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;
 
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;