[GRASS-SVN] r34965 - grass/branches/releasebranch_6_3/raster/r.flow

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


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

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

Modified: grass/branches/releasebranch_6_3/raster/r.flow/io.c
===================================================================
--- grass/branches/releasebranch_6_3/raster/r.flow/io.c	2008-12-21 08:57:12 UTC (rev 34964)
+++ grass/branches/releasebranch_6_3/raster/r.flow/io.c	2008-12-21 08:57:40 UTC (rev 34965)
@@ -126,7 +126,7 @@
 	    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