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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Feb 16 17:13:35 PST 2016


Author: glynn
Date: 2016-02-16 17:13:35 -0800 (Tue, 16 Feb 2016)
New Revision: 67851

Modified:
   grass/trunk/raster/r.mapcalc/map.c
Log:
Fix row cache (issue #2917)


Modified: grass/trunk/raster/r.mapcalc/map.c
===================================================================
--- grass/trunk/raster/r.mapcalc/map.c	2016-02-16 18:31:21 UTC (rev 67850)
+++ grass/trunk/raster/r.mapcalc/map.c	2016-02-17 01:13:35 UTC (rev 67851)
@@ -170,7 +170,7 @@
 
     if (i <= -cache->nrows || i >= cache->nrows * 2 - 1) {
 	memset(sub->valid, 0, cache->nrows);
-	sub->row = i;
+	sub->row = row;
 	read_row(cache->fd, sub->buf[0], row, data_type);
 	sub->valid[0] = 1;
 	return sub->buf[0];



More information about the grass-commit mailing list