IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36492


Ignore:
Timestamp:
Feb 6, 2014, 12:47:10 PM (12 years ago)
Author:
eugene
Message:

do not segv on failed inversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/astrom/pmAstrometryWCS.c

    r34271 r36492  
    576576    psFree (region);
    577577
     578    // XXX if the inversion fails, we probably do not have a valid transform anyway
     579    if (!chip->fromFPA) {
     580      psWarning ("failed to find a valid transformation");
     581      psFree (chip->toFPA);
     582      return false;
     583    }
     584
    578585    // this can take a very long time...
    579586    while (fpa->toSky->R < 0)
Note: See TracChangeset for help on using the changeset viewer.