[GRASS-SVN] r34964 - grass/branches/releasebranch_6_4/raster/r.flow

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 21 03:57:12 EST 2008


Author: neteler
Date: 2008-12-21 03:57:12 -0500 (Sun, 21 Dec 2008)
New Revision: 34964

Modified:
   grass/branches/releasebranch_6_4/raster/r.flow/io.c
Log:
glynn: write ds only if parm.dsout is set (merge from trunk, r34962)

Modified: grass/branches/releasebranch_6_4/raster/r.flow/io.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.flow/io.c	2008-12-21 08:56:58 UTC (rev 34963)
+++ grass/branches/releasebranch_6_4/raster/r.flow/io.c	2008-12-21 08:57:12 UTC (rev 34964)
@@ -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