[GRASS-SVN] r42412 - grass/branches/releasebranch_6_4/raster/r.grow.distance

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jun 1 05:14:45 EDT 2010


Author: mmetz
Date: 2010-06-01 05:14:25 -0400 (Tue, 01 Jun 2010)
New Revision: 42412

Modified:
   grass/branches/releasebranch_6_4/raster/r.grow.distance/main.c
Log:
bugfix for distance calculation (partial backport from trunk r34429)

Modified: grass/branches/releasebranch_6_4/raster/r.grow.distance/main.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.grow.distance/main.c	2010-06-01 02:57:31 UTC (rev 42411)
+++ grass/branches/releasebranch_6_4/raster/r.grow.distance/main.c	2010-06-01 09:14:25 UTC (rev 42412)
@@ -287,6 +287,12 @@
 	    check(col, 1, -1);
 	}
 
+	for (col = 0; col < ncols; col++)
+	    check(col, -1, 0);
+
+	for (col = ncols - 1; col >= 0; col--)
+	    check(col, 1, 0);
+
 	if (dist_name) {
 	    if (out_row != dist_row)
 		for (col = 0; col < ncols; col++)



More information about the grass-commit mailing list