[GRASS-SVN] r68768 - grass/branches/releasebranch_7_2/raster/r.mapcalc

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jun 26 02:50:21 PDT 2016


Author: neteler
Date: 2016-06-26 02:50:21 -0700 (Sun, 26 Jun 2016)
New Revision: 68768

Modified:
   grass/branches/releasebranch_7_2/raster/r.mapcalc/map.c
Log:
r.mapcalc: fix wrong result when neighborhood modifier takes a cell above first (trunk, r68717, fixes #3067)

Modified: grass/branches/releasebranch_7_2/raster/r.mapcalc/map.c
===================================================================
--- grass/branches/releasebranch_7_2/raster/r.mapcalc/map.c	2016-06-25 23:34:50 UTC (rev 68767)
+++ grass/branches/releasebranch_7_2/raster/r.mapcalc/map.c	2016-06-26 09:50:21 UTC (rev 68768)
@@ -162,7 +162,7 @@
 
     if (i >= 0 && i < cache->nrows) {
 	if (!sub->valid[i]) {
-	    read_row(cache->fd, sub->buf[i], row + i, data_type);
+	    read_row(cache->fd, sub->buf[i], row, data_type);
 	    sub->valid[i] = 1;
 	}
 	return sub->buf[i];



More information about the grass-commit mailing list