Index: trunk/psModules/src/objects/pmTrend2D.c
===================================================================
--- trunk/psModules/src/objects/pmTrend2D.c	(revision 15000)
+++ trunk/psModules/src/objects/pmTrend2D.c	(revision 15254)
@@ -3,6 +3,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-09-24 21:27:58 $
+ *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-10-09 19:26:25 $
  *
  *  Copyright 2004 Institute for Astronomy, University of Hawaii
@@ -48,7 +48,7 @@
 	    for (int ny = 0; ny < trend->poly->nY + 1; ny++) {
 		if (nx + ny >= PS_MAX (trend->poly->nX, trend->poly->nY) + 1) {
-		    trend->poly->mask[nx][ny] = 1;
+		    trend->poly->coeffMask[nx][ny] = PS_POLY_MASK_SET;
 		} else {
-		    trend->poly->mask[nx][ny] = 0;
+		    trend->poly->coeffMask[nx][ny] = PS_POLY_MASK_NONE;
 		}
 	    }
@@ -96,7 +96,7 @@
 	    for (int ny = 0; ny < trend->poly->nY + 1; ny++) {
 		if (nx + ny >= PS_MAX (trend->poly->nX, trend->poly->nY) + 1) {
-		    trend->poly->mask[nx][ny] = 1;
+		    trend->poly->coeffMask[nx][ny] = PS_POLY_MASK_SET;
 		} else {
-		    trend->poly->mask[nx][ny] = 0;
+		    trend->poly->coeffMask[nx][ny] = PS_POLY_MASK_NONE;
 		}
 	    }
@@ -137,7 +137,7 @@
 	    for (int ny = 0; ny < trend->poly->nY + 1; ny++) {
 		if (nx + ny >= PS_MAX (trend->poly->nX, trend->poly->nY) + 1) {
-		    trend->poly->mask[nx][ny] = 1;
+		    trend->poly->coeffMask[nx][ny] = PS_POLY_MASK_SET;
 		} else {
-		    trend->poly->mask[nx][ny] = 0;
+		    trend->poly->coeffMask[nx][ny] = PS_POLY_MASK_NONE;
 		}
 	    }
