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

Location:
trunk/SRC/ToBeReviewed/WIDGET
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/buildreadcmd.pro

    r134 r146  
    156156    (*top_uvalue[1, findline(top_uvalue, 'dates')])[*, numdessinout] = [date1, date2] 
    157157  ENDIF ELSE BEGIN 
    158     Cmd = [funclec_name+'('+snamevar+', date1, date2, '+snameexp $ 
     158    Cmd = [funclec_name+'('+snamevar+', '+sdate1+', '+sdate2+', '+snameexp $ 
    159159           +', parent = '+strtrim(base, 1)+', boxzoom = '+box+' $' $ 
    160160           , '    , filename = '+sfilename+' $'] 
  • 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.