]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datetime.cpp
assert if ShowModal() is called after a previous Show() (#1416)
[wxWidgets.git] / src / common / datetime.cpp
index 7fdd2affd108420d9b06694565c81c4bed8eb03d..f6ad3f6259ab5fd94d548c220cdf7d9029b301f6 100644 (file)
@@ -2847,8 +2847,9 @@ wxDateTime::ParseRfc822Date(const wxString& date, wxString::const_iterator *end)
     min = (wxDateTime_t)(min + *p++ - _T('0'));
 
     wxDateTime_t sec = 0;
-    if ( *p++ == _T(':') )
+    if ( *p == _T(':') )
     {
+        p++;
         if ( !wxIsdigit(*p) )
         {
             return NULL;