IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15171


Ignore:
Timestamp:
Oct 2, 2007, 5:41:13 PM (19 years ago)
Author:
Paul Price
Message:

Don't copy something if the data doesn't exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_070920/psModules/src/camera/pmFPACopy.c

    r14884 r15171  
    8383    assert(source);
    8484    assert(xBin > 0 && yBin > 0);
     85
     86    if (!source->data_exists) {
     87        // Copied everything that exists
     88        return true;
     89    }
    8590
    8691    // XXX this is a programming / config error
     
    347352    assert(yBin > 0);
    348353
     354    if (!source->data_exists) {
     355        // Copied everything that exists
     356        return true;
     357    }
     358
    349359    psArray *targetCells = target->cells; // The target cells
    350360    psArray *sourceCells = source->cells; // The source cells
Note: See TracChangeset for help on using the changeset viewer.