Ignore:
Timestamp:
06/14/07 14:41:34 (17 years ago)
Author:
smasson
Message:

small bugfix: z2d[0] = -1 and z2d has more than 1 element

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/PLOTS/DESSINE/plt.pro

    r246 r251  
    239239  checktypeminmax, 'plt', TYPE = type, MIN = min, MAX = max, _extra = ex 
    240240  z2d = checkfield(tab1, 'plt', TYPE = type, BOXZOOM = boxzoom, DIREC = direc, VECTEUR = vecteur, _extra = ex) 
    241   if z2d[0] EQ -1 then BEGIN 
     241  if n_elements(z2d) EQ 1 AND z2d[0] EQ -1 then BEGIN 
    242242    IF keyword_set(savedbox) THEN restoreboxparam, 'boxparam4plt.dat' 
    243243    return 
     
    293293  determineminmax, z2d, mask, mi, ma, glam, gphi, MININ = min, MAXIN = max $ 
    294294    , nan = nan, INTERVALLE = intervalle, usetri = usetri, _extra = ex 
    295   if z2d[0] EQ -1 THEN GOTO, sortie 
     295  if n_elements(z2d) EQ 1 AND z2d[0] EQ -1 THEN GOTO, sortie 
    296296; We do an autoscale if needed. 
    297297  if autoscale then autoscale, min, max, intervalle 
Note: See TracChangeset for help on using the changeset viewer.