]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/valtext.cpp
Correctly recognize when wglChoosePixelFormatARB() fails.
[wxWidgets.git] / src / common / valtext.cpp
index ebd0c3cefc2f0481b6efff1bd82a5c1cf009d888..795df492d61539104a94a4daa09b7d7821140e0d 100644 (file)
@@ -232,7 +232,7 @@ wxString wxTextValidator::IsValid(const wxString& val) const
         return _("'%s' should only contain alphabetic characters.");
     if ( HasFlag(wxFILTER_ALPHANUMERIC) && !CheckString(wxIsalnum, val) )
         return _("'%s' should only contain alphabetic or numeric characters.");
-    if ( HasFlag(wxFILTER_DIGITS) && CheckString(wxIsdigit, val) )
+    if ( HasFlag(wxFILTER_DIGITS) && !CheckString(wxIsdigit, val) )
         return _("'%s' should only contain digits.");
     if ( HasFlag(wxFILTER_NUMERIC) && !wxIsNumeric(val) )
         return _("'%s' should be numeric.");