Sfoglia il codice sorgente

glynn: write ds only if parm.dsout is set

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@34962 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 16 anni fa
parent
commit
8efb3eea45
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      raster/r.flow/io.c

+ 1 - 1
raster/r.flow/io.c

@@ -117,7 +117,7 @@ void read_input_files(void)
 	    G_get_d_raster_row(fd, barc, row);
 	    for (col = 0; col < region.cols; col++) {
 		BM_set(bitbar, col, row, (barc[col] != 0));
-		if (barc[col] != 0)
+		if (parm.dsout && barc[col] != 0)
 		    put(ds, row, col, -1);
 	    }
 	}