[GRASS-SVN] r38802 - grass/branches/develbranch_6/raster/r.what
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 20 04:20:23 EDT 2009
Author: hamish
Date: 2009-08-20 04:20:19 -0400 (Thu, 20 Aug 2009)
New Revision: 38802
Modified:
grass/branches/develbranch_6/raster/r.what/main.c
Log:
export fs evenly, even if cell is NULL
Modified: grass/branches/develbranch_6/raster/r.what/main.c
===================================================================
--- grass/branches/develbranch_6/raster/r.what/main.c 2009-08-20 07:41:43 UTC (rev 38801)
+++ grass/branches/develbranch_6/raster/r.what/main.c 2009-08-20 08:20:19 UTC (rev 38802)
@@ -417,6 +417,10 @@
if (out_type[i] == CELL_TYPE) {
if (G_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]);
@@ -425,6 +429,10 @@
if (G_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