Index: /branches/eam_branch_20071023/psphot/src/psphotDiagnosticPlots.c
===================================================================
--- /branches/eam_branch_20071023/psphot/src/psphotDiagnosticPlots.c	(revision 15516)
+++ /branches/eam_branch_20071023/psphot/src/psphotDiagnosticPlots.c	(revision 15517)
@@ -145,5 +145,5 @@
     // do we want the requested plot?
     if (!psMetadataLookupBool (&status, plots, name)) return false;
-    
+
     // Get the variable list parameters to pass to allocation function
     va_start(argPtr, name);
@@ -151,22 +151,22 @@
     if (!strcmp(name, "IMAGE.BACKGROUND.CELL.HISTOGRAM")) {
 
-	int ix = va_arg(argPtr, psS32);
-	int iy = va_arg(argPtr, psS32);
-	float mean  = va_arg(argPtr, double);
-	float sigma = va_arg(argPtr, double);
-	psVector *values = va_arg(argPtr, psPtr);
-	
-	int xPlot = psMetadataLookupS32 (&status, plots, "IMAGE.BACKGROUND.CELL.HISTOGRAM.X");
-	assert (status);
-	int yPlot = psMetadataLookupS32 (&status, plots, "IMAGE.BACKGROUND.CELL.HISTOGRAM.Y");
-	assert (status);
+        int ix = va_arg(argPtr, psS32);
+        int iy = va_arg(argPtr, psS32);
+        float mean  = va_arg(argPtr, double);
+        float sigma = va_arg(argPtr, double);
+        psVector *values = va_arg(argPtr, psPtr);
 
-	bool gotX = (xPlot < 0) || (xPlot == ix);
-	bool gotY = (yPlot < 0) || (yPlot == iy);
+        int xPlot = psMetadataLookupS32 (&status, plots, "IMAGE.BACKGROUND.CELL.HISTOGRAM.X");
+        assert (status);
+        int yPlot = psMetadataLookupS32 (&status, plots, "IMAGE.BACKGROUND.CELL.HISTOGRAM.Y");
+        assert (status);
 
-	if (gotX && gotY) {
-	    psphotImageBackgroundCellHistogram (values, mean, sigma, ix, iy);
-	    goto done;
-	}
+        bool gotX = (xPlot < 0) || (xPlot == ix);
+        bool gotY = (yPlot < 0) || (yPlot == iy);
+
+        if (gotX && gotY) {
+            psphotImageBackgroundCellHistogram (values, mean, sigma, ix, iy);
+            goto done;
+        }
     }
 
@@ -181,5 +181,8 @@
 int psphotKapaOpen () { return -1; }
 bool psphotKapaClose () { return true; }
-bool psphotImageBackgroundCellHistogram (psVector *values) { return true; }
+bool psphotImageBackgroundCellHistogram (psVector *values, float mean, float sigma, int ix, int iy)
+{
+    return true;
+}
 bool psphotDiagnosticPlots (pmConfig *config, char *name, ...) { return true; }
 
