[GRASS-SVN] r71298 - grass/branches/releasebranch_7_2/vector/v.kernel

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jul 22 05:35:54 PDT 2017


Author: annakrat
Date: 2017-07-22 05:35:54 -0700 (Sat, 22 Jul 2017)
New Revision: 71298

Modified:
   grass/branches/releasebranch_7_2/vector/v.kernel/main.c
Log:
v.kernel: fix using mask (merge from trunk, r70941)

Modified: grass/branches/releasebranch_7_2/vector/v.kernel/main.c
===================================================================
--- grass/branches/releasebranch_7_2/vector/v.kernel/main.c	2017-07-22 12:29:46 UTC (rev 71297)
+++ grass/branches/releasebranch_7_2/vector/v.kernel/main.c	2017-07-22 12:35:54 UTC (rev 71298)
@@ -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