IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29874


Ignore:
Timestamp:
Nov 29, 2010, 11:38:34 AM (15 years ago)
Author:
eugene
Message:

return a null array if there is an error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101103/psLib/src/fits/psFitsImage.c

    r28509 r29874  
    900900
    901901    if (nAxis == 2) {
     902        psImage *image = psFitsReadImage(fits, region, 0);
     903        if (!image) {
     904            psFitsError(status, true, "Could not read image into cube");
     905            return NULL;
     906        }
    902907        psArray *images = psArrayAlloc(1); // Single image plane
    903         images->data[0] = psFitsReadImage(fits, region, 0);
     908        images->data[0] = image;
    904909        return images;
    905910    }
Note: See TracChangeset for help on using the changeset viewer.