[GRASS-SVN] r67922 - grass/branches/releasebranch_7_0/raster/r.mapcalc
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Feb 22 07:53:41 PST 2016
Author: mlennert
Date: 2016-02-22 07:53:41 -0800 (Mon, 22 Feb 2016)
New Revision: 67922
Modified:
grass/branches/releasebranch_7_0/raster/r.mapcalc/map.c
Log:
Fix row cache (issue #2917 - backport from trunk)
Modified: grass/branches/releasebranch_7_0/raster/r.mapcalc/map.c
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.mapcalc/map.c 2016-02-22 10:56:16 UTC (rev 67921)
+++ grass/branches/releasebranch_7_0/raster/r.mapcalc/map.c 2016-02-22 15:53:41 UTC (rev 67922)
@@ -168,7 +168,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