]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/control.cpp
adding peer back to wxWindow
[wxWidgets.git] / src / palmos / control.cpp
index 5f60d345ca7cd78d5216660c50dd8f2e8c190296..90a0b34af30b9c75ca3c1679f52d68dcbe410189 100644 (file)
@@ -332,7 +332,7 @@ void wxControl::DoMoveWindow(int x, int y, int width, int height)
 bool wxControl::Enable(bool enable)
 {
     ControlType *control = (ControlType *)GetObjectPtr();
-    if( (IsPalmControl()) || (control == NULL))
+    if( !IsPalmControl() || (control == NULL))
         return false;
     if( CtlEnabled(control) == enable)
         return false;
@@ -343,7 +343,7 @@ bool wxControl::Enable(bool enable)
 bool wxControl::IsEnabled() const
 {
     ControlType *control = (ControlType *)GetObjectPtr();
-    if( (IsPalmControl()) || (control == NULL))
+    if( !IsPalmControl() || (control == NULL))
         return false;
     return CtlEnabled(control);
 }