Index: /trunk/psLib/src/imageops/psImageMapFit.c
===================================================================
--- /trunk/psLib/src/imageops/psImageMapFit.c	(revision 15000)
+++ /trunk/psLib/src/imageops/psImageMapFit.c	(revision 15001)
@@ -7,6 +7,6 @@
  *  @author Eugene Magnier, IfA
  *
- *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-09-22 03:05:50 $
+ *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-09-24 21:29:10 $
  *
  *  Copyright 2007 Institute for Astronomy, University of Hawaii
@@ -18,16 +18,14 @@
 
 #include <stdio.h>
-#include "psMemory.h"
 #include "psError.h"
 #include "psAbort.h"
 #include "psTrace.h"
 
-// XXX for testing
 // #include "psFits.h"
-// #include "psFitsImage.h"
-
 #include "psAssert.h"
 #include "psRegion.h"
-
+// #include "psFitsImage.h"
+
+#include "psMemory.h"
 #include "psVector.h"
 #include "psImage.h"
@@ -182,4 +180,9 @@
                 if (m == Ny - 1) Qy = 0;
 
+		assert (isfinite(fi));
+		assert (isfinite(wt));
+		assert (isfinite(rx));
+		assert (isfinite(ry));
+
                 // points at offset 1,1
                 if ((Qx == 1) && (Qy == 1)) {
