Explorar o código

export fs evenly, even if cell is NULL (merge from devbr6)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38803 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman %!s(int64=16) %!d(string=hai) anos
pai
achega
6f64b9650c
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      raster/r.what/main.c

+ 8 - 0
raster/r.what/main.c

@@ -413,6 +413,10 @@ int main(int argc, char *argv[])
 		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 @@ int main(int argc, char *argv[])
 
 		    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)