IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4980


Ignore:
Timestamp:
Sep 8, 2005, 4:02:54 PM (21 years ago)
Author:
drobbin
Message:

updated psRegionFromString to subtract 1 from x0,y0 per bug 509

Location:
trunk/psLib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/mathtypes/psImage.c

    r4944 r4980  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.80 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-09-02 21:32:06 $
     11 *  @version $Revision: 1.81 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-09-09 02:02:54 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    141141    }
    142142
    143     return psRegionSet(col0,col1,row0,row1);
     143    return psRegionSet(col0-1,col1,row0-1,row1);
    144144}
    145145
  • trunk/psLib/test/mathtypes/tst_psImage.c

    r4936 r4980  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-08-31 22:00:32 $
     8 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-09-09 02:02:54 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    263263
    264264    testNum++;
    265     if (region.x0 != 1 || region.x1 != 2 || region.y0 != 3 || region.y1 != 4) {
     265    if (region.x0 != 0 || region.x1 != 2 || region.y0 != 2 || region.y1 != 4) {
    266266        psError(PS_ERR_UNKNOWN, false,
    267267                "The region attributes are not set properly (%s)",
Note: See TracChangeset for help on using the changeset viewer.