[GRASS-SVN] r70941 - grass/trunk/vector/v.kernel
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Apr 23 19:42:16 PDT 2017
Author: annakrat
Date: 2017-04-23 19:42:16 -0700 (Sun, 23 Apr 2017)
New Revision: 70941
Modified:
grass/trunk/vector/v.kernel/main.c
Log:
v.kernel: fix using mask
Modified: grass/trunk/vector/v.kernel/main.c
===================================================================
--- grass/trunk/vector/v.kernel/main.c 2017-04-24 02:41:12 UTC (rev 70940)
+++ grass/trunk/vector/v.kernel/main.c 2017-04-24 02:42:16 UTC (rev 70941)
@@ -567,7 +567,7 @@
for (col = 0; col < window.cols; col++) {
/* don't interpolate outside of the mask */
- if (mask && mask[col] == 0) {
+ if (mask && Rast_is_c_null_value(&mask[col])) {
Rast_set_d_null_value(&output_cell[col], 1);
continue;
}
More information about the grass-commit
mailing list