Explorar o código

r.surf.idw: fix null value condition, https://trac.osgeo.org/grass/ticket/2671

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65214 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová %!s(int64=10) %!d(string=hai) anos
pai
achega
d6a18eaf8b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      raster/r.surf.idw/main.c

+ 1 - 1
raster/r.surf.idw/main.c

@@ -712,7 +712,7 @@ MELEMENT *row_lists(
 	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;