Changeset 333


Ignore:
Timestamp:
03/22/12 18:07:33 (12 years ago)
Author:
ymipsl
Message:

correct bug about operation between date and duration

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/calendar_util.cpp

    r266 r333  
    7373         // Ajustement des mois en fonction des jours. 
    7474         int signVal = (drr.day != 0) ? drr.day/fabs(drr.day) : 0; 
    75          CDate dtt(dt); dtt.addMonth (signVal); 
     75         CDate dtt(dt);  
     76         if (signVal < 0) dtt.addMonth (signVal); 
    7677 
    7778         for(; c.getMonthLength(dtt) < fabs(drr.day); dtt.addMonth (signVal)) 
Note: See TracChangeset for help on using the changeset viewer.