IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 20, 2009, 11:13:44 AM (17 years ago)
Author:
watersc1
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/cleanup/extsrc/gpcsw/gpcsrc/fits/burntool/trailfit.c

    r23924 r25145  
    283283   }
    284284/* Update fit ranges */
    285    box->sxfit = box->xfit[0];
    286    box->exfit = box->xfit[box->nfit-1];
    287 
     285   if(box->nfit > 0) {
     286      box->sxfit = box->xfit[0];
     287      box->exfit = box->xfit[box->nfit-1];
     288   } else {
     289      box->sxfit = xs;
     290      box->exfit = xs - 1;
     291      box->fiterr = FIT_ALL_GONE;
     292   }
     293//   if(box->nfit <= 0) fprintf(stderr, "WHOA, got nfit = 0\n");
    288294   return(0);
    289295}
Note: See TracChangeset for help on using the changeset viewer.