Index: trunk/psLib/src/imageops/psImageConvolve.c
===================================================================
--- trunk/psLib/src/imageops/psImageConvolve.c	(revision 17809)
+++ trunk/psLib/src/imageops/psImageConvolve.c	(revision 17810)
@@ -7,6 +7,6 @@
 /// @author Eugene Magnier, IfA
 ///
-/// @version $Revision: 1.70 $ $Name: not supported by cvs2svn $
-/// @date $Date: 2008-05-24 22:47:11 $
+/// @version $Revision: 1.71 $ $Name: not supported by cvs2svn $
+/// @date $Date: 2008-05-24 23:01:42 $
 ///
 /// Copyright 2004-2007 Institute for Astronomy, University of Hawaii
@@ -833,4 +833,5 @@
         if (masking) {
             // Mask from the minimum to the end of the row
+            min = PS_MAX(0, min);
             memset(&convData[y][min], 0xff, (numCols - min) * PSELEMTYPE_SIZEOF(PS_TYPE_MASK));
         }
@@ -860,5 +861,5 @@
         if (masking) {
             // Mask from the minimum to the end of the column
-            for (int i = min; i < numRows; i++) {
+            for (int i = PS_MAX(0, min); i < numRows; i++) {
                 outData[i][x] |= setVal;
             }
