[GRASS-SVN] r34963 - grass/branches/develbranch_6/raster/r.flow

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


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

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

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