[GRASS-SVN] r34962 - grass/trunk/raster/r.flow

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 21 03:56:26 EST 2008


Author: neteler
Date: 2008-12-21 03:56:25 -0500 (Sun, 21 Dec 2008)
New Revision: 34962

Modified:
   grass/trunk/raster/r.flow/io.c
Log:
glynn: write ds only if parm.dsout is set

Modified: grass/trunk/raster/r.flow/io.c
===================================================================
--- grass/trunk/raster/r.flow/io.c	2008-12-21 02:13:19 UTC (rev 34961)
+++ grass/trunk/raster/r.flow/io.c	2008-12-21 08:56:25 UTC (rev 34962)
@@ -117,7 +117,7 @@
 	    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);
 	    }
 	}



More information about the grass-commit mailing list