[GRASS-SVN] r33122 - grass/trunk/lib/pngdriver

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 27 13:02:40 EDT 2008


Author: glynn
Date: 2008-08-27 13:02:40 -0400 (Wed, 27 Aug 2008)
New Revision: 33122

Modified:
   grass/trunk/lib/pngdriver/Graph_set.c
Log:
Make GRASS_TRUECOLOR default to TRUE


Modified: grass/trunk/lib/pngdriver/Graph_set.c
===================================================================
--- grass/trunk/lib/pngdriver/Graph_set.c	2008-08-27 17:00:55 UTC (rev 33121)
+++ grass/trunk/lib/pngdriver/Graph_set.c	2008-08-27 17:02:40 UTC (rev 33122)
@@ -66,7 +66,7 @@
     png.file_name = p;
 
     p = getenv("GRASS_TRUECOLOR");
-    png.true_color = p && strcmp(p, "TRUE") == 0;
+    png.true_color = !p || strcmp(p, "FALSE") != 0;
 
     G_message("PNG: GRASS_TRUECOLOR status: %s",
 	      png.true_color ? "TRUE" : "FALSE");



More information about the grass-commit mailing list