IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 1, 2008, 10:04:14 AM (18 years ago)
Author:
Paul Price
Message:

Fix trace so it doesn't die if the first image gets rejected.

File:
1 edited

Legend:

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

    r17255 r17265  
    517517#ifndef PS_NO_TRACE
    518518            {
    519                 pmReadout *ro = readouts->data[0];
    520                 psTrace("ppStack", 4, "Stack: [%d:%d,%d:%d]\n", ro->col0, ro->col0 + ro->image->numCols,
    521                         ro->row0, ro->row0 + ro->image->numRows);
     519                pmReadout *ro = NULL;
     520                for (int i = 0; i < num && !ro; i++) {
     521                    if (!rejected->data[i]) {
     522                        continue;
     523                    }
     524                    ro = readouts->data[i];
     525                }
     526                if (ro && ro->image) {
     527                    psTrace("ppStack", 4, "Stack: [%d:%d,%d:%d]\n", ro->col0, ro->col0 + ro->image->numCols,
     528                            ro->row0, ro->row0 + ro->image->numRows);
     529                }
    522530            }
    523531#endif
Note: See TracChangeset for help on using the changeset viewer.