Index: /trunk/pswarp/src/pswarpTransformSources.c
===================================================================
--- /trunk/pswarp/src/pswarpTransformSources.c	(revision 27278)
+++ /trunk/pswarp/src/pswarpTransformSources.c	(revision 27279)
@@ -60,5 +60,5 @@
 
         int xGrid, yGrid;           ///< Grid coordinates for local map
-        if (!pswarpMapGridSetGrid(sourceGrid, xIn + 0.5, yIn + 0.5, &xGrid, &yGrid)) {
+        if (!pswarpMapGridSetGrid(sourceGrid, xIn, yIn, &xGrid, &yGrid)) {
             psError(psErrorCodeLast(), false, "Unable to get grid coordinates for source at %f,%f\n",
                     xIn, yIn);
@@ -75,5 +75,5 @@
         pswarpMap *map = sourceGrid->maps[xGrid][yGrid]; ///< Locally linear transformation
         double xOut, yOut;          ///< Output coordinates
-        if (!pswarpMapApply(&xOut, &yOut, map, xIn + 0.5, yIn + 0.5)) {
+        if (!pswarpMapApply(&xOut, &yOut, map, xIn, yIn)) {
             psError(psErrorCodeLast(), false, "Unable to transform coordinates for source at %f,%f\n",
                     xIn, yIn);
@@ -82,6 +82,6 @@
             return false;
         }
-        xOut += output->image->col0 - 0.5;
-        yOut += output->image->row0 - 0.5;
+        xOut += output->image->col0;
+        yOut += output->image->row0;
         if (xOut < minX || xOut > maxX || yOut < minY || yOut > maxY) {
             // It's not in the output image
