Index: trunk/psModules/src/astrom/pmAstrometryWCS.c
===================================================================
--- trunk/psModules/src/astrom/pmAstrometryWCS.c	(revision 25313)
+++ trunk/psModules/src/astrom/pmAstrometryWCS.c	(revision 25324)
@@ -290,5 +290,4 @@
     if (pcKeys) {
         wcs->wcsCDkeys = 0;
-
         wcs->cdelt1 = psMetadataLookupF64 (&status, header, "CDELT1");
         wcs->cdelt2 = psMetadataLookupF64 (&status, header, "CDELT2");
@@ -379,5 +378,4 @@
     // XXX make it optional to write out CDi_j terms, or other versions
     // apply CDELT1,2 (degrees / pixel) to yield PCi,j terms of order unity
-
     if (!(wcs->wcsCDkeys)) {
 
@@ -423,4 +421,5 @@
     }
     if (wcs->wcsCDkeys) {
+
       psMetadataAddF64 (header, PS_LIST_TAIL, "CD1_1", PS_META_REPLACE, "", wcs->trans->x->coeff[1][0]);
       psMetadataAddF64 (header, PS_LIST_TAIL, "CD1_2", PS_META_REPLACE, "", wcs->trans->x->coeff[0][1]);
