Index: /trunk/Ohana/src/addstar/src/find_matches.c
===================================================================
--- /trunk/Ohana/src/addstar/src/find_matches.c	(revision 12399)
+++ /trunk/Ohana/src/addstar/src/find_matches.c	(revision 12400)
@@ -44,5 +44,5 @@
    */
   tcoords.crval1 = 0.5*(region[0].Rmin + region[0].Rmax);
-  if (region[0].Rmax < 90) {
+  if (region[0].Dmax < 90) {
     tcoords.crval2 = 0.5*(region[0].Dmin + region[0].Dmax);
   } else {
Index: /trunk/Ohana/src/addstar/src/find_matches_closest.c
===================================================================
--- /trunk/Ohana/src/addstar/src/find_matches_closest.c	(revision 12399)
+++ /trunk/Ohana/src/addstar/src/find_matches_closest.c	(revision 12400)
@@ -45,5 +45,5 @@
    */
   tcoords.crval1 = 0.5*(region[0].Rmin + region[0].Rmax);
-  if (region[0].Rmax < 90) {
+  if (region[0].Dmax < 90) {
     tcoords.crval2 = 0.5*(region[0].Dmin + region[0].Dmax);
   } else {
