Index: branches/czw_branch/20170908/psastro/src/psastroLoadGlints.c
===================================================================
--- branches/czw_branch/20170908/psastro/src/psastroLoadGlints.c	(revision 40199)
+++ branches/czw_branch/20170908/psastro/src/psastroLoadGlints.c	(revision 40399)
@@ -345,4 +345,5 @@
 		scale_factor = psMetadataLookupF32(&status, refItem->data.md, "FACTOR");
 		double limit = psMetadataLookupF32(&status, refItem->data.md, "LIMIT");
+		limit += MagOffset;
 		if (star->Mag > limit) { continue; }
 	      }
@@ -407,5 +408,6 @@
 	      psPlane *tp = psPlaneAlloc();
 
-	      fprintf(stderr,"HSC GLINT: x1x2(%f %f) (%f %f) x1sx1e (%f %f %f %f) x2sx2e (%f %f %f %f)\n",
+	      fprintf(stderr,"HSC GLINT %f: x1x2(%f %f) (%f %f) x1sx1e (%f %f %f %f) x2sx2e (%f %f %f %f)\n",
+		      star->Mag,
 		      x1,y1,x2,y2,
 		      x1s,y1s,x1e,y1e,
