Index: /trunk/psphot/src/psphotReadout.c
===================================================================
--- /trunk/psphot/src/psphotReadout.c	(revision 15230)
+++ /trunk/psphot/src/psphotReadout.c	(revision 15231)
@@ -140,6 +140,6 @@
     if (psf == NULL) {
         // use bright stellar objects to measure PSF
-	// XXX if we do not have enough stars to generate the PSF, build one 
-	// from the SEEING guess and model class
+        // XXX if we do not have enough stars to generate the PSF, build one
+        // from the SEEING guess and model class
         psf = psphotChoosePSF (readout, sources, recipe, maskVal, maskMark);
         if (psf == NULL) {
@@ -147,5 +147,5 @@
             return psphotReadoutCleanup (config, readout, recipe, psf, sources);
         }
-	havePSF = true;
+        havePSF = true;
     }
 
@@ -268,5 +268,5 @@
 
     // measure aperture photometry corrections
-    if (!psphotApResid (readout, sources, recipe, psf, maskVal, maskMark)) {
+    if (!havePSF && !psphotApResid (readout, sources, recipe, psf, maskVal, maskMark)) {
         psTrace ("psphot", 4, "failure on psphotApResid");
         psError(PSPHOT_ERR_PHOTOM, false, "Measure aperture photometry corrections");
