Changeset 15703
- Timestamp:
- Nov 27, 2007, 1:50:44 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSource.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSource.c
r15698 r15703 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1.4 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-11-27 2 1:01:59$8 * @version $Revision: 1.43 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-11-27 23:50:44 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 169 169 source->pixels = psImageCopyView(NULL, in->pixels); 170 170 source->weight = psImageCopyView(NULL, in->weight); 171 source->maskView = psImageCopyView(NULL, in->maskView);171 source->maskView = in->maskView ? psImageCopyView(NULL, in->maskView) : NULL; 172 172 173 173 // 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; 177 175 178 176 source->type = in->type;
Note:
See TracChangeset
for help on using the changeset viewer.
