]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/checkbox.cpp
simplify code to return from the end of the function
[wxWidgets.git] / src / motif / checkbox.cpp
index 771c50ff85fbdedbdb5fdb5834688ae4ad4e58be..6a68b1009b59f297fde032b9078e97e7f936a2e9 100644 (file)
@@ -138,7 +138,7 @@ void wxCheckBoxCallback (Widget WXUNUSED(w), XtPointer clientData,
 
 void wxCheckBox::ChangeBackgroundColour()
 {
-    if (!m_backgroundColour.Ok())
+    if (!m_backgroundColour.IsOk())
         return;
 
     wxComputeColours (XtDisplay((Widget) m_mainWidget), & m_backgroundColour,