[GRASS-SVN] r38803 - grass/trunk/raster/r.what

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 20 04:26:45 EDT 2009


Author: hamish
Date: 2009-08-20 04:26:45 -0400 (Thu, 20 Aug 2009)
New Revision: 38803

Modified:
   grass/trunk/raster/r.what/main.c
Log:
export fs evenly, even if cell is NULL (merge from devbr6)

Modified: grass/trunk/raster/r.what/main.c
===================================================================
--- grass/trunk/raster/r.what/main.c	2009-08-20 08:20:19 UTC (rev 38802)
+++ grass/trunk/raster/r.what/main.c	2009-08-20 08:26:45 UTC (rev 38803)
@@ -413,6 +413,10 @@
 		if (out_type[i] == CELL_TYPE) {
 		    if (Rast_is_c_null_value(&cache[point].value[i])) {
 			fprintf(stdout, "%c%s", fs, null_str);
+			if (label_flag->answer)
+			    fprintf(stdout, "%c", fs);
+			if (color_flag->answer)
+			    fprintf(stdout, "%c", fs);
 			continue;
 		    }
 		    fprintf(stdout, "%c%ld", fs, (long)cache[point].value[i]);
@@ -421,6 +425,10 @@
 
 		    if (Rast_is_d_null_value(&cache[point].dvalue[i])) {
 			fprintf(stdout, "%c%s", fs, null_str);
+			if (label_flag->answer)
+			    fprintf(stdout, "%c", fs);
+			if (color_flag->answer)
+			    fprintf(stdout, "%c", fs);
 			continue;
 		    }
 		    if (out_type[i] == FCELL_TYPE)



More information about the grass-commit mailing list