Skip to content

Commit 0b22155

Browse files
authored
v.surf.idw: fix applying mask (#2383)
Fixes https://trac.osgeo.org/grass/ticket/3677
1 parent 50d5fcb commit 0b22155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vector/v.surf.idw/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ int main(int argc, char *argv[])
280280
for (col = 0; col < window.cols; col++) {
281281
east += window.ew_res;
282282
/* don't interpolate outside of the mask */
283-
if (mask && mask[col] == 0) {
283+
if (mask && (mask[col] == 0 || Rast_is_c_null_value(&mask[col]))) {
284284
Rast_set_d_null_value(&dcell[col], 1);
285285
continue;
286286
}

0 commit comments

Comments
 (0)