Index: /trunk/psastro/src/psastroLoadRefstars.c
===================================================================
--- /trunk/psastro/src/psastroLoadRefstars.c	(revision 16028)
+++ /trunk/psastro/src/psastroLoadRefstars.c	(revision 16029)
@@ -155,4 +155,11 @@
         }
 
+	// XXX VERY temporary hack to avoid M31 bulge
+	if ((fabs(ref->sky->r - 0.186438) < 0.002) && (fabs(ref->sky->d - 0.720270) < 0.002)) {
+	  psFree (ref);
+	  psFree (row);
+	  continue;
+	}
+
         psArrayAdd (refstars, 100, ref);
         psFree (ref);
@@ -181,4 +188,11 @@
 	ref->Mag      = psMetadataLookupF32 (&status, row, "MAG");
 
+	// XXX VERY temporary hack to avoid M31 bulge
+	if ((fabs(ref->sky->r - 0.186438) < 0.002) && (fabs(ref->sky->d - 0.720270) < 0.002)) { 
+	  psFree (ref);
+	  psFree (row);
+	  continue;
+	}
+
         psArrayAdd (refstars, 100, ref);
         psFree (ref);
