IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15703


Ignore:
Timestamp:
Nov 27, 2007, 1:50:44 PM (18 years ago)
Author:
Paul Price
Message:

Only copy image if defined.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSource.c

    r15698 r15703  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-11-27 21:01:59 $
     8 *  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-11-27 23:50:44 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    169169    source->pixels   = psImageCopyView(NULL, in->pixels);
    170170    source->weight   = psImageCopyView(NULL, in->weight);
    171     source->maskView = psImageCopyView(NULL, in->maskView);
     171    source->maskView = in->maskView ? psImageCopyView(NULL, in->maskView) : NULL;
    172172
    173173    // the maskObj is a unique mask array; create a new mask image
    174     if (in->maskObj) {
    175         source->maskObj = psImageCopy (NULL, in->maskObj, PS_TYPE_MASK);
    176     }
     174    source->maskObj = in->maskObj ? psImageCopy (NULL, in->maskObj, PS_TYPE_MASK) : NULL;
    177175
    178176    source->type = in->type;
Note: See TracChangeset for help on using the changeset viewer.