IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27447


Ignore:
Timestamp:
Mar 25, 2010, 6:21:14 PM (16 years ago)
Author:
Paul Price
Message:

Allow an image to have no associated sources (because they're magicked away, say).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackSources.c

    r27427 r27447  
    144144    for (int i = 0; i < num; i++) {
    145145        psArray *sources = sourceLists->data[i]; // Source list
    146         psAssert(sources, "Don't have source list %d", i);
    147         if (sources->n == 0) {
     146        if (!sources || sources->n == 0) {
    148147            psLogMsg("ppStack", PS_LOG_WARN, "Image %d has no sources for transparency measurement.", i);
    149148            options->inputMask->data.PS_TYPE_VECTOR_MASK_DATA[i] |= PPSTACK_MASK_CAL;
Note: See TracChangeset for help on using the changeset viewer.