]> git.saurik.com Git - wxWidgets.git/commitdiff
minor cleanup (don't use magic numbers)
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Wed, 30 Mar 2005 11:45:37 +0000 (11:45 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Wed, 30 Mar 2005 11:45:37 +0000 (11:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/checkbox.cpp

index a43947cc5cf3d20ccd6bd74a1528612a9a191d07..9e0897ed4e235eaf33891fb5de9571417e5b293c 100644 (file)
@@ -220,7 +220,7 @@ void wxCheckBox::SetValue(bool val)
 
 bool wxCheckBox::GetValue() const
 {
-    return (Get3StateValue() != 0);
+    return (Get3StateValue() != wxCHK_UNCHECKED);
 }
 
 void wxCheckBox::Command(wxCommandEvent& event)