Index: trunk/psLib/src/fits/psFitsImage.c
===================================================================
--- trunk/psLib/src/fits/psFitsImage.c	(revision 18590)
+++ trunk/psLib/src/fits/psFitsImage.c	(revision 18869)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2008-07-17 03:34:22 $
+ *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2008-08-02 02:50:41 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -623,5 +623,5 @@
     }
 
-    if (blank != 0) {
+    if (blank != 0 && bitPix > 0) {
         // Some quantisation has taken place --- record the blank ("magic") pixel value
         char *keyword = (psFitsCompressionGetType(fits) != PS_FITS_COMPRESS_NONE &&
