IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40806 for trunk


Ignore:
Timestamp:
Jun 20, 2019, 10:23:27 AM (7 years ago)
Author:
eugene
Message:

do not abort on invalid projection; allow calling function to fail gracefully

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psCoord.c

    r39926 r40806  
    13001300psProjectionType psProjectTypeFromString(const char *name)
    13011301{
    1302     PS_ASSERT_STRING_NON_EMPTY(name, PS_PROJ_NONE);
     1302
     1303  // let higher-level calls decide if this should be an error
     1304  if (!name) return PS_PROJ_NONE;
     1305  if (!name[0]) return PS_PROJ_NONE;
     1306
     1307  // PS_ASSERT_STRING_NON_EMPTY(name, PS_PROJ_NONE);
    13031308
    13041309    if (!strcmp (&name[4], "-LIN")) return PS_PROJ_LIN;
Note: See TracChangeset for help on using the changeset viewer.