[GRASS-SVN] r65214 - grass/trunk/raster/r.surf.idw

svn_grass at osgeo.org svn_grass at osgeo.org
Sun May 10 14:06:10 PDT 2015


Author: annakrat
Date: 2015-05-10 14:06:09 -0700 (Sun, 10 May 2015)
New Revision: 65214

Modified:
   grass/trunk/raster/r.surf.idw/main.c
Log:
r.surf.idw: fix null value condition, #2671

Modified: grass/trunk/raster/r.surf.idw/main.c
===================================================================
--- grass/trunk/raster/r.surf.idw/main.c	2015-05-10 19:52:26 UTC (rev 65213)
+++ grass/trunk/raster/r.surf.idw/main.c	2015-05-10 21:06:09 UTC (rev 65214)
@@ -712,7 +712,7 @@
 	Rast_get_c_row_nomask(fd, cell, row);
 
 	for (col = 0; col < cols; col++) {
-	    if (cell[col] != 0) {
+	    if (!Rast_is_c_null_value(&cell[col])) {
 		++(*npts);
 		Mptr = (MELEMENT *) G_malloc(sizeof(MELEMENT));
 		Mptr->x = col;



More information about the grass-commit mailing list