Ignore:
Timestamp:
11/15/07 18:15:30 (17 years ago)
Author:
smasson
Message:

bugfix in xxx animations

File:
1 edited

Legend:

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

    r297 r310  
    3030; 
    3131@common 
     32 
    3233; We recuperate arguments contained in the widget 
    3334  if tag_names(event, /structure_name) NE 'WIDGET_BUTTON' then return 
     
    5556  widget_control, widget_info(event.top, find_by_uname = 'debut') $ 
    5657                  , get_value = vdate1 
    57   index1 = where(calendar eq date2jul(vdate1)) & index1 = index1[0] 
     58  index1 = (where(abs(calendar - date2jul(vdate1)) LT 1./86400.))[0] 
    5859  if index1 EQ -1 then return 
    5960; 
    6061  widget_control, widget_info(event.handler, find_by_uname = 'fin') $ 
    6162                  , get_value = vdate2 
    62   index2 = where(calendar eq date2jul(vdate2)) & index2 = index2[0] 
     63  index2 = (where(abs(calendar - date2jul(vdate2)) LT 1./86400.))[0] 
    6364  if index2 EQ -1 OR index2 LE index1 then return 
    6465; We delete the widget before create the file .ps 
Note: See TracChangeset for help on using the changeset viewer.