Index: /trunk/stac/src/stacTransform.c
===================================================================
--- /trunk/stac/src/stacTransform.c	(revision 7543)
+++ /trunk/stac/src/stacTransform.c	(revision 7544)
@@ -214,5 +214,7 @@
 
                     outImage->data.F32[y][x] = (outImage->data.F32[y][x] - offset) / scale;
-                    outImage->data.F32[y][x] = outImage->data.F32[y][x] / SQUARE(scale);
+                    if (error) {
+                        outError->data.F32[y][x] = outError->data.F32[y][x] / SQUARE(scale);
+                    }
 
                 } // Pixels of interest
