]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/button.cpp
wxChoice/wxComboBox background colour change (to get back to where we were);
[wxWidgets.git] / src / motif / button.cpp
index 44f1f521db600babfcfc472af6b90260a173120f..6953b76006d509e5913d267a78c5ec8aebe5c5a3 100644 (file)
 #include "wx/utils.h"
 #include "wx/panel.h"
 
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
 #include <Xm/PushBG.h>
 #include <Xm/PushB.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
 
 #include "wx/motif/private.h"
 
@@ -100,7 +106,7 @@ bool wxButton::Create(wxWindow *parent, wxWindowID id, const wxString& label,
 void wxButton::SetDefault()
 {
     wxWindow *parent = GetParent();
-    wxPanel *panel = wxDynamicCast(panel, wxPanel);
+    wxPanel *panel = wxDynamicCast(parent, wxPanel);
     if ( panel )
         panel->SetDefaultItem(this);