Index: trunk/psModules/src/objects/pmSourceIO_CMP.c
===================================================================
--- trunk/psModules/src/objects/pmSourceIO_CMP.c	(revision 10854)
+++ trunk/psModules/src/objects/pmSourceIO_CMP.c	(revision 11227)
@@ -3,6 +3,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-12-29 18:32:01 $
+ *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-01-22 01:12:06 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -126,9 +126,11 @@
         axes = psEllipseShapeToAxes (shape, 20.0);
 
+        float errMag = isfinite(source->errMag) ? source->errMag : 999;
+
         psLineInit (line);
         psLineAdd (line, "%6.1f ",  PAR[PM_PAR_XPOS]);
         psLineAdd (line, "%6.1f ",  PAR[PM_PAR_YPOS]);
         psLineAdd (line, "%6.3f ",  PS_MIN (99.0, source->psfMag + ZERO_POINT));
-        psLineAdd (line, "%03d ",   PS_MIN (999, (int)(1000*source->errMag)));
+        psLineAdd (line, "%03d ",   PS_MIN (999, (int)errMag));
         psLineAdd (line, "%2d ",    type);
         psLineAdd (line, "%3.1f ",  lsky);
