Changeset 2474


Ignore:
Timestamp:
03/08/23 15:49:58 (16 months ago)
Author:
jderouillat
Message:

Fix user defined calendar with first month shorter than some other months

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/branches/xios-3.0-beta/src/calendar.cpp

    r1357 r2474  
    303303        if (date.getDay() < 1) 
    304304        { isValid = false; date.setDay(1); } 
    305         else if (date.getDay() > getMonthLength(*this)) 
    306         { isValid = false; date.setDay(getMonthLength(*this)); } 
     305        else if (date.getDay() > getMonthLength(date)) 
     306        { isValid = false; date.setDay(getMonthLength(date)); } 
    307307 
    308308        // Vérification de la valeur de l'heure. 
Note: See TracChangeset for help on using the changeset viewer.