Index: /trunk/psModules/src/imcombine/pmSubtraction.c
===================================================================
--- /trunk/psModules/src/imcombine/pmSubtraction.c	(revision 14580)
+++ /trunk/psModules/src/imcombine/pmSubtraction.c	(revision 14581)
@@ -4,6 +4,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-08-17 01:50:50 $
+ *  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-08-21 18:16:54 $
  *
  *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
@@ -136,5 +136,5 @@
 
               // Normalising sum of kernel component to unity
-              float norm = kernelWeighting(1.0 / (float)((uStop - uStart) * (vStop - vStart)),
+              float norm = kernelWeighting(1.0 / (float)((uStop - uStart + 1) * (vStop - vStart + 1)),
                                            varianceWeighting);
 
@@ -245,5 +245,5 @@
               }
           }
-          sum /= (uStop - uStart) * (vStop - vStart); // Normalising sum of kernel component to unity
+          sum /= (uStop - uStart + 1) * (vStop - vStart + 1); // Normalising sum of kernel component to unity
           if (kernels->spatialOrder > 0 && index != kernels->subIndex) {
               // The (0,0) element is subtracted from most kernels to preserve photometric scaling
