Index: trunk/psLib/test/image/tst_psImageStats02.c
===================================================================
--- trunk/psLib/test/image/tst_psImageStats02.c	(revision 1365)
+++ trunk/psLib/test/image/tst_psImageStats02.c	(revision 1406)
@@ -4,5 +4,5 @@
    thouroughly tested elsewhere, we will only test psImageStats() with
    the PS_STAT_SAMPLE_MEAN here.
-
+ 
    NOTE: After you debug, set CHEBY_X_DIM != CHEBY_Y_DIM.
    Also, uses non-square images.
@@ -32,5 +32,5 @@
     int rc = 0;
     int currentId = 0;
-    
+
     currentId = psMemGetId();
     /*************************************************************************/
@@ -40,11 +40,11 @@
     outImage = psImageAlloc( IMAGE_SIZE, IMAGE_SIZE, PS_TYPE_F32 );
     for ( i = 0;i < IMAGE_SIZE;i++ ) {
-            for ( j = 0;j < IMAGE_SIZE;j++ ) {
-                    tmpImage->data.F32[ i ][ j ] = 4.0;
-                    tmpImage->data.F32[ i ][ j ] = ( float ) ( i + j );
-                    tmpImage->data.F32[ i ][ j ] = ( float ) ( i + j ) + ( 4.0 * ( float ) i );
-                    outImage->data.F32[ i ][ j ] = 0.0;
-                }
+        for ( j = 0;j < IMAGE_SIZE;j++ ) {
+            tmpImage->data.F32[ i ][ j ] = 4.0;
+            tmpImage->data.F32[ i ][ j ] = ( float ) ( i + j );
+            tmpImage->data.F32[ i ][ j ] = ( float ) ( i + j ) + ( 4.0 * ( float ) i );
+            outImage->data.F32[ i ][ j ] = 0.0;
         }
+    }
     my2DPoly = psPolynomial2DAlloc( CHEBY_X_DIM, CHEBY_Y_DIM );
     /*************************************************************************/
@@ -54,12 +54,12 @@
                              "psImageStats functions",
                              "Calculate Chebyshev Polynomials, no mask" );
-                             
+
     my2DPoly = psImageFitPolynomial( tmpImage, my2DPoly );
     for ( i = 0;i < CHEBY_X_DIM;i++ ) {
-            for ( j = 0;j < CHEBY_Y_DIM;j++ ) {
-                    printf( "Cheby Polynomial (%d, %d) coefficient is %.2f\n", i, j, my2DPoly->coeff[ i ][ j ] );
-                }
+        for ( j = 0;j < CHEBY_Y_DIM;j++ ) {
+            printf( "Cheby Polynomial (%d, %d) coefficient is %.2f\n", i, j, my2DPoly->coeff[ i ][ j ] );
         }
-        
+    }
+
     psMemCheckCorruption( 1 );
     printFooter( stdout,
@@ -73,21 +73,21 @@
                              "psImageStats functions",
                              "Calculate Chebyshev Polynomials, no mask" );
-                             
+
     rc = psImageEvalPolynomial( outImage, my2DPoly );
     for ( i = 0;i < IMAGE_SIZE;i++ ) {
-            for ( j = 0;j < IMAGE_SIZE;j++ ) {
-            
-                    //             printf("pixel[%d][%d] is (%f, %f)\n", i, j,
-                    //                     tmpImage->data.F32[i][j],
-                    //                     outImage->data.F32[i][j]);
-                    if ( fabs( outImage->data.F32[ i ][ j ] - tmpImage->data.F32[ i ][ j ] ) > THRESHOLD ) {
-                            printf( "Pixel (%d, %d) is %.2f, should be %.2f\n", i, j,
-                                    outImage->data.F32[ i ][ j ],
-                                    tmpImage->data.F32[ i ][ j ] );
-                        }
-                        
-                }
+        for ( j = 0;j < IMAGE_SIZE;j++ ) {
+
+            //             printf("pixel[%d][%d] is (%f, %f)\n", i, j,
+            //                     tmpImage->data.F32[i][j],
+            //                     outImage->data.F32[i][j]);
+            if ( fabs( outImage->data.F32[ i ][ j ] - tmpImage->data.F32[ i ][ j ] ) > THRESHOLD ) {
+                printf( "Pixel (%d, %d) is %.2f, should be %.2f\n", i, j,
+                        outImage->data.F32[ i ][ j ],
+                        tmpImage->data.F32[ i ][ j ] );
+            }
+
         }
-        
+    }
+
     psMemCheckCorruption( 1 );
     printFooter( stdout,
@@ -95,5 +95,5 @@
                  "Calculate Chebyshev Polynomials, no mask",
                  testStatus );
-                 
+
     /*************************************************************************/
     /*  Deallocate data structures                                   */
@@ -106,16 +106,16 @@
     psFree( outImage );
     psFree( my2DPoly );
-    
+
     psMemCheckCorruption( 1 );
     memLeaks = psMemCheckLeaks( currentId, NULL, NULL );
     if ( 0 != memLeaks ) {
-            psAbort( __func__, "Memory Leaks! (%d leaks)", memLeaks );
-        }
-        
+        psAbort( __func__, "Memory Leaks! (%d leaks)", memLeaks );
+    }
+
     printFooter( stdout,
                  "psImageStats functions",
                  "Deallocate the psStats/psImage structure.",
                  testStatus );
-                 
+
     return ( !testStatus );
 }
