Index: trunk/psLib/src/imageops/psImageInterpolate.c
===================================================================
--- trunk/psLib/src/imageops/psImageInterpolate.c	(revision 19304)
+++ trunk/psLib/src/imageops/psImageInterpolate.c	(revision 19354)
@@ -7,6 +7,6 @@
  *  @author Paul Price, IfA
  *
- *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2008-08-27 01:54:01 $
+ *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2008-09-04 20:11:00 $
  *
  *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
@@ -265,5 +265,5 @@
     if (xStop > xLast) { \
         xMax = xLast; \
-        iMax = xStop - xLast; \
+        iMax = xLast - xStart + 1; \
         offImage = true; \
     } else { \
@@ -281,5 +281,5 @@
     if (yStop > yLast) { \
         yMax = yLast; \
-        jMax = yStop - yLast; \
+        jMax = yLast - yStart + 1; \
         offImage = true; \
     } else { \
