Index: trunk/psModules/src/astrom/pmAstrometryUtils.c
===================================================================
--- trunk/psModules/src/astrom/pmAstrometryUtils.c	(revision 15884)
+++ trunk/psModules/src/astrom/pmAstrometryUtils.c	(revision 15895)
@@ -7,6 +7,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-12-19 18:57:05 $
+ *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-12-22 17:52:21 $
  *
  *  Copyright 2006 Institute for Astronomy, University of Hawaii
@@ -132,9 +132,4 @@
 psPlaneTransform *psPlaneTransformRotate (psPlaneTransform *output, psPlaneTransform *input, double theta)
 {
-    // validate fit order
-    if (output == NULL) {
-        output = psPlaneTransformAlloc(input->x->nX, input->x->nY);
-    }
-
     /* given the polynomial transformations:
      *  L(x,y) = \sum_i \sum_j A_{i,j} x^i y^j and 
@@ -145,4 +140,8 @@
      * B'_{i,j} = c B_{i,j} - s A_{i,j}
      */
+
+    if (output == NULL) {
+        output = psPlaneTransformAlloc(input->x->nX, input->x->nY);
+    }
 
     float cs = cos(theta);
