IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36424


Ignore:
Timestamp:
Jan 7, 2014, 11:39:32 AM (13 years ago)
Author:
bills
Message:

don't call pmModelClassGetName if inputType is < 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/bills_branches/bills_201312/psModules/src/objects/pmModelClass.c

    r36412 r36424  
    265265        }
    266266    } else {
    267         // no lookup table defined, if inputType refers to a defined model, return it
    268         // for backwards compatability
    269         if (pmModelClassGetName(inputType)) {
     267        // no lookup table defined
     268        // for backwards compatability if inputType refers to a defined model, return it
     269        if (inputType >= 0 && pmModelClassGetName(inputType)) {
    270270            localType = inputType;
    271271        }
Note: See TracChangeset for help on using the changeset viewer.