[GRASS-SVN] r59024 - grass/trunk/raster/r.li/r.li.patchdensity
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Feb 13 05:35:30 PST 2014
Author: mmetz
Date: 2014-02-13 05:35:30 -0800 (Thu, 13 Feb 2014)
New Revision: 59024
Modified:
grass/trunk/raster/r.li/r.li.patchdensity/main.c
Log:
r.li.patchdensity: fix mask
Modified: grass/trunk/raster/r.li/r.li.patchdensity/main.c
===================================================================
--- grass/trunk/raster/r.li/r.li.patchdensity/main.c 2014-02-13 13:34:50 UTC (rev 59023)
+++ grass/trunk/raster/r.li/r.li.patchdensity/main.c 2014-02-13 13:35:30 UTC (rev 59024)
@@ -115,9 +115,9 @@
if (ad->mask == 1) {
if (read(mask_fd, mask_buf, (ad->cl * sizeof(int))) < 0)
return 0;
- for (k = 0; k < ad->cl; k++) {
- if (mask_buf[k] == 0) {
- Rast_set_c_null_value(&buf[k + ad->x], 1);
+ for (j = 0; j < ad->cl; j++) {
+ if (mask_buf[j + ad->x] == 0) {
+ Rast_set_c_null_value(&buf[j + ad->x], 1);
null_count++;
}
}
More information about the grass-commit
mailing list