[GRASS-SVN] r68717 - grass/trunk/raster/r.mapcalc

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jun 20 15:25:52 PDT 2016


Author: glynn
Date: 2016-06-20 15:25:52 -0700 (Mon, 20 Jun 2016)
New Revision: 68717

Modified:
   grass/trunk/raster/r.mapcalc/map.c
Log:
Fix #3067


Modified: grass/trunk/raster/r.mapcalc/map.c
===================================================================
--- grass/trunk/raster/r.mapcalc/map.c	2016-06-20 20:36:21 UTC (rev 68716)
+++ grass/trunk/raster/r.mapcalc/map.c	2016-06-20 22:25:52 UTC (rev 68717)
@@ -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