]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/button.cpp
refactor wxDocChildFrame and wxDocMDIChildFrame to use wxDocChildFrameAny intead...
[wxWidgets.git] / src / palmos / button.cpp
index 7b9be2891062be481dc057be59a703ca7089ca78..93fd0d6690e478d9b57c724a195e1b7682e8b16b 100644 (file)
@@ -200,8 +200,10 @@ wxWindow *wxButton::SetDefault()
 {
     FormType* form = (FormType* )GetParentForm();
     if(form==NULL)
-        return;
+        return NULL;
+#ifdef __WXPALMOS6__
     FrmSetDefaultButtonID(form,GetId());
+#endif // __WXPALMOS6__
 
     return wxButtonBase::SetDefault();
 }