]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/control.cpp
Added wxUSE_NUMBERDLG to setup.h; added some files to VC++ project files;
[wxWidgets.git] / src / motif / control.cpp
index 4a799084775bd04c81c70ff4d58db1646af3c710..c31dec797f2882be426cad8e3cfd2a38e39e2849 100644 (file)
@@ -67,7 +67,7 @@ wxControl::~wxControl()
     wxPanel *panel = wxDynamicCast(GetParent(), wxPanel);
     if (panel)
     {
-        if (panel->GetDefaultItem() == this)
+        if ( (wxControl *)panel->GetDefaultItem() == this)
             panel->SetDefaultItem((wxButton*) NULL);
     }
 }