Index: trunk/psModules/src/imcombine/pmSubtraction.c
===================================================================
--- trunk/psModules/src/imcombine/pmSubtraction.c	(revision 14307)
+++ trunk/psModules/src/imcombine/pmSubtraction.c	(revision 14311)
@@ -4,6 +4,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-07-19 01:39:28 $
+ *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-07-19 02:03:42 $
  *
  *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
@@ -1050,20 +1050,20 @@
                             convWeight->data.F32[y][x] = NAN;
                         }
-                    }
-
-                    // Convolve the image
-                    for (int v = -size; v <= size; v++) {
-                        for (int u = -size; u <= size; u++) {
-                            convImage->data.F32[y][x] += kernelImage->kernel[v][u] *
-                                inImage->data.F32[y + v][x + u];
-                        }
-                    }
-
-                    // Convolve the weight (variance) map
-                    if (inWeight) {
+                    } else {
+                        // Convolve the image
                         for (int v = -size; v <= size; v++) {
                             for (int u = -size; u <= size; u++) {
-                                convWeight->data.F32[y][x] += kernelWeight->kernel[v][u] *
-                                    inWeight->data.F32[y + v][x + u];
+                                convImage->data.F32[y][x] += kernelImage->kernel[v][u] *
+                                    inImage->data.F32[y + v][x + u];
+                            }
+                        }
+
+                        // Convolve the weight (variance) map
+                        if (inWeight) {
+                            for (int v = -size; v <= size; v++) {
+                                for (int u = -size; u <= size; u++) {
+                                    convWeight->data.F32[y][x] += kernelWeight->kernel[v][u] *
+                                        inWeight->data.F32[y + v][x + u];
+                                }
                             }
                         }
