Index: trunk/psModules/src/camera/pmFPARead.c
===================================================================
--- trunk/psModules/src/camera/pmFPARead.c	(revision 7311)
+++ trunk/psModules/src/camera/pmFPARead.c	(revision 7382)
@@ -8,5 +8,4 @@
 #include "pmHDUUtils.h"
 #include "pmConcepts.h"
-#include "psRegionIsBad.h"
 #include "pmFPAHeader.h"
 
@@ -33,5 +32,5 @@
 
     // The image corresponding to the trim region
-    if (psRegionIsBad(*trimsec)) {
+    if (psRegionIsNaN(*trimsec)) {
         psString regionString = psRegionToString(*trimsec);
         psError(PS_ERR_UNKNOWN, true, "Invalid trim section: %s\n", regionString);
@@ -59,5 +58,5 @@
     psRegion *biassec = NULL;       // A BIASSEC region from the list
     while ((biassec = psListGetAndIncrement(iter))) {
-        if (psRegionIsBad(*biassec)) {
+        if (psRegionIsNaN(*biassec)) {
             psString regionString = psRegionToString(*biassec);
             psError(PS_ERR_IO, true, "Invalid bias section: %s\n", regionString);
@@ -190,5 +189,5 @@
     bool mdok = true;                   // Status of MD lookup
     psRegion *trimsec = psMetadataLookupPtr(&mdok, cell->concepts, "CELL.TRIMSEC"); // Trim sections
-    if (!mdok || !trimsec || psRegionIsBad(*trimsec)) {
+    if (!mdok || !trimsec || psRegionIsNaN(*trimsec)) {
         psError(PS_ERR_IO, true, "CELL.TRIMSEC is not set.\n");
         return false;
