Index: trunk/psModules/src/imcombine/pmStack.c
===================================================================
--- trunk/psModules/src/imcombine/pmStack.c	(revision 14272)
+++ trunk/psModules/src/imcombine/pmStack.c	(revision 14277)
@@ -8,6 +8,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-07-17 23:33:09 $
+ *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-07-18 02:16:46 $
  *
  *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
@@ -249,5 +249,5 @@
     float mean, variance;               // Mean and variance of the combination
     if (!combinationMean(&mean, pixelData, weights, pixelMasks, maskVal) ||
-        (weight && !combinationVariance(&variance, weights, pixelWeights, pixelMasks, maskVal))) {
+        (weight && !combinationVariance(&variance, pixelWeights, weights, pixelMasks, maskVal))) {
         image->data.F32[y][x] = NAN;
         mask->data.PS_TYPE_MASK_DATA[y][x] = bad;
