Index: trunk/psModules/src/objects/pmSourceContour.c
===================================================================
--- trunk/psModules/src/objects/pmSourceContour.c	(revision 15619)
+++ trunk/psModules/src/objects/pmSourceContour.c	(revision 15980)
@@ -6,6 +6,6 @@
  *  @author EAM, IfA: significant modifications.
  *
- *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-11-14 22:15:42 $
+ *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2008-01-02 20:39:04 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -227,9 +227,4 @@
     int y = yc - image->row0;
 
-    // the requested point must be within the contour
-    if (image->data.F32[y][x] < threshold) {
-        return NULL;
-    }
-
     // Ensure that the starting column is allowable.
     if (x < 0) {
@@ -243,4 +238,9 @@
     }
     if (y >= image->numRows) {
+        return NULL;
+    }
+
+    // the requested point must be within the contour
+    if (image->data.F32[y][x] < threshold) {
         return NULL;
     }
