Ignore:
Timestamp:
07/26/06 10:57:43 (18 years ago)
Author:
smasson
Message:

bugfix xxx: calendar with year 0 and date when ploting for example a-b

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_calendar.pro

    r134 r146  
    6161; 
    6262    value = long(value[0]) 
     63; make sure the value correspond 
     64    value = jul2date(date2jul(value)) 
    6365; define year month day 
    6466    year = value/10000l 
    6567    month = (value MOD 10000L)/100L 
    6668    day = value MOD 100L 
    67 ; make sure the values correspond to real dates 
    68     if year EQ 0 then year = -1  
    69     if month EQ 0 then month = 6 
    70     if day EQ 0 then day = 15 
    7169; check that the date exists in the calendar 
    7270  if (where(infowid.calendar EQ julday(month, day, year)))[0] EQ - 1 then return 
Note: See TracChangeset for help on using the changeset viewer.