Index: trunk/psLib/src/math/psRegion.c
===================================================================
--- trunk/psLib/src/math/psRegion.c	(revision 9538)
+++ trunk/psLib/src/math/psRegion.c	(revision 10729)
@@ -81,13 +81,16 @@
 psString psRegionToString(const psRegion region)
 {
-    char tmpText[256]; // big enough to store any region as text
+    char *result = NULL;
 
-    snprintf(tmpText,256,"[%g:%g,%g:%g]",
-             region.x0+1, region.x1,
-             region.y0+1, region.y1);
-
-    return psStringCopy(tmpText);
+    // [0:0,0:0] is complete image region
+    if ((region.x0 == 0) && (region.x1 == 0) && (region.y0 == 0) && (region.y1 == 0)) {
+        psStringAppend(&result, "[0:0,0:0]");
+    } else {
+        psStringAppend(&result, "[%g:%g,%g:%g]",
+                       region.x0+1, region.x1,
+                       region.y0+1, region.y1);
+    }
+    return result;
 }
-
 
 // define a square region centered on the given coordinate
