IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15640


Ignore:
Timestamp:
Nov 16, 2007, 2:39:29 PM (18 years ago)
Author:
eugene
Message:

crash on mismatched images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageInterpolate.c

    r15586 r15640  
    77 *  @author Paul Price, IfA
    88 *
    9  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2007-11-11 21:48:37 $
     9 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2007-11-17 00:39:29 $
    1111 *
    1212 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    604604        PS_ASSERT_IMAGE_NON_NULL(mask, PS_INTERPOLATE_STATUS_ERROR);
    605605        PS_ASSERT_IMAGE_TYPE(mask, PS_TYPE_MASK, PS_INTERPOLATE_STATUS_ERROR);
     606        if ((image->numCols != mask->numCols) || (image->numRows != mask->numRows)) {
     607          psAbort ("programming error");
     608        }
    606609        PS_ASSERT_IMAGES_SIZE_EQUAL(mask, image, PS_INTERPOLATE_STATUS_ERROR);
    607610        // XXX these should probably be asserts, not PS_ASSERTS
Note: See TracChangeset for help on using the changeset viewer.