Browse Source

Fix https://trac.osgeo.org/grass/ticket/3067

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@68717 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 8 năm trước cách đây
mục cha
commit
569dec50e0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      raster/r.mapcalc/map.c

+ 1 - 1
raster/r.mapcalc/map.c

@@ -162,7 +162,7 @@ static void *cache_get_raw(struct row_cache *cache, int row, int data_type)
 
     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];