X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/653567bb4c75974e07a1369f4b79aefc10c06eb7..1857c88d2624f37590be3b13c33f5cf9449e7a3b:/src/common/datetime.cpp diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index 1e84f0689c..7ea7a574e3 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -1886,7 +1886,7 @@ wxDateTime& wxDateTime::SetToYearDay(wxDateTime::wxDateTime_t yday) // for Dec, we can't compare with gs_cumulatedDays[mon + 1], but we // don't need it neither - because of the CHECK above we know that // yday lies in December then - if ( (mon == Dec) || (yday < gs_cumulatedDays[isLeap][mon + 1]) ) + if ( (mon == Dec) || (yday <= gs_cumulatedDays[isLeap][mon + 1]) ) { Set(yday - gs_cumulatedDays[isLeap][mon], mon, year);