git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24243
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// 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
// 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);
{
Set(yday - gs_cumulatedDays[isLeap][mon], mon, year);