Index: trunk/psLib/src/image/psImage.c
===================================================================
--- trunk/psLib/src/image/psImage.c	(revision 889)
+++ trunk/psLib/src/image/psImage.c	(revision 938)
@@ -9,6 +9,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-07 00:32:53 $
+ *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-06-08 23:56:34 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -2120,4 +2120,10 @@
         return 0;
     }
+
+    if (max < min) {
+        psError(__func__,"psImageClip can not be invoked with max < min.");
+        return 0;
+    }
+
     numRows = input->numRows;
     numCols = input->numCols;
