Index: trunk/psphot/src/psphotExtendedSourceAnalysis.c
===================================================================
--- trunk/psphot/src/psphotExtendedSourceAnalysis.c	(revision 32348)
+++ trunk/psphot/src/psphotExtendedSourceAnalysis.c	(revision 32633)
@@ -209,6 +209,6 @@
 	// if we have checked the source validity on the basis of the object set, then 
 	// we either skip these tests below or we skip the source completely
-	if (source->tmpFlags & PM_SOURCE_TMPF_STACK_SKIP) continue;
-	if (source->tmpFlags & PM_SOURCE_TMPF_STACK_KEEP) goto keepSource;
+	if (source->tmpFlags & PM_SOURCE_TMPF_PETRO_SKIP) continue;
+	if (source->tmpFlags & PM_SOURCE_TMPF_PETRO_KEEP) goto keepSource;
 
 	// skip PSF-like and non-astronomical objects
