Index: trunk/psphot/src/psphotEvalFLT.c
===================================================================
--- trunk/psphot/src/psphotEvalFLT.c	(revision 12792)
+++ trunk/psphot/src/psphotEvalFLT.c	(revision 13804)
@@ -11,17 +11,15 @@
     }
 
-    // did the model fit fail for one or another reason?
-    switch (model->status) {
-      case PM_MODEL_SUCCESS:
-	break;
-      case PM_MODEL_UNTRIED:
+    // was the model actually fitted?
+    if (!(model->flags & PM_MODEL_STATUS_FITTED)) {
 	source->mode &= ~PM_SOURCE_MODE_FITTED; 
 	return false;
-      case PM_MODEL_BADARGS:
-      case PM_MODEL_NONCONVERGE:
-      case PM_MODEL_OFFIMAGE:
-      default:
+    }
+    // did the model fit fail for one or another reason?
+    if (model->flags & (PM_MODEL_STATUS_BADARGS | 
+			PM_MODEL_STATUS_NONCONVERGE | 
+			PM_MODEL_STATUS_OFFIMAGE)) {
+	source->mode |= PM_SOURCE_MODE_FAIL;
 	psLogMsg ("psphot", 5, "EXT fail fit\n");
-	source->mode |= PM_SOURCE_MODE_FAIL;
 	return false;
     }
