IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27618


Ignore:
Timestamp:
Apr 6, 2010, 12:21:40 PM (16 years ago)
Author:
Paul Price
Message:

Fix bugs in streaks output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppViz/src/ppCoord/ppCoordLoop.c

    r27613 r27618  
    5454{
    5555    int numCells = cellNames->n; // Number of cells
    56     for (int i = 0; i < numCells && !cellName; i++) {
     56    for (int i = 0; i < numCells && !*cellName; i++) {
    5757        psRegion *region = cellBounds->data[i]; // Bounds of cell
    5858        if (xChip >= region->x0 && xChip < region->x1 && yChip >= region->y0 && yChip < region->y1) {
     
    141141        streaksOut->data[6] = psVectorAlloc(numStreaks, PS_TYPE_F32);
    142142        streaksOut->data[7] = psVectorAlloc(numStreaks, PS_TYPE_F32);
     143        psVectorInit(streaksOut->data[2], NAN);
    143144        psVectorInit(streaksOut->data[3], NAN);
    144         psVectorInit(streaksOut->data[4], NAN);
    145145        psVectorInit(streaksOut->data[6], NAN);
    146146        psVectorInit(streaksOut->data[7], NAN);
Note: See TracChangeset for help on using the changeset viewer.