Index: trunk/psLib/src/imageops/psImageConvolve.c
===================================================================
--- trunk/psLib/src/imageops/psImageConvolve.c	(revision 17807)
+++ trunk/psLib/src/imageops/psImageConvolve.c	(revision 17808)
@@ -7,6 +7,6 @@
 /// @author Eugene Magnier, IfA
 ///
-/// @version $Revision: 1.68 $ $Name: not supported by cvs2svn $
-/// @date $Date: 2008-05-24 22:23:14 $
+/// @version $Revision: 1.69 $ $Name: not supported by cvs2svn $
+/// @date $Date: 2008-05-24 22:45:31 $
 ///
 /// Copyright 2004-2007 Institute for Astronomy, University of Hawaii
@@ -831,4 +831,8 @@
             }
         }
+        if (masking) {
+            // Mask from the minimum to the end of the row
+            memset(&convData[y][min], 0xff, (numCols - min) * PSELEMTYPE_SIZEOF(PS_TYPE_MASK));
+        }
     }
     for (int x = 0; x < numCols; x++) {
@@ -854,4 +858,10 @@
             }
         }
+        if (masking) {
+            // Mask from the minimum to the end of the column
+            for (int i = min; i < numCols; i++) {
+                outData[i][x] |= setVal;
+            }
+        }
     }
 
