]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/control.cpp
added new project file having the new files
[wxWidgets.git] / src / motif / control.cpp
index 4a799084775bd04c81c70ff4d58db1646af3c710..310c2c686195d0a412b4bc313d413d7f2e302c41 100644 (file)
@@ -13,6 +13,8 @@
 #pragma implementation "control.h"
 #endif
 
+#include "wx/defs.h"
+
 #include "wx/control.h"
 #include "wx/panel.h"
 #include "wx/utils.h"
@@ -67,7 +69,7 @@ wxControl::~wxControl()
     wxPanel *panel = wxDynamicCast(GetParent(), wxPanel);
     if (panel)
     {
-        if (panel->GetDefaultItem() == this)
+        if ( (wxControl *)panel->GetDefaultItem() == this)
             panel->SetDefaultItem((wxButton*) NULL);
     }
 }