[GRASS-SVN] r43597 - grass/branches/develbranch_6/raster/r.surf.contour

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 21 10:38:26 EDT 2010


Author: mmetz
Date: 2010-09-21 14:38:26 +0000 (Tue, 21 Sep 2010)
New Revision: 43597

Modified:
   grass/branches/develbranch_6/raster/r.surf.contour/main.c
Log:
another nodata fix

Modified: grass/branches/develbranch_6/raster/r.surf.contour/main.c
===================================================================
--- grass/branches/develbranch_6/raster/r.surf.contour/main.c	2010-09-21 14:38:04 UTC (rev 43596)
+++ grass/branches/develbranch_6/raster/r.surf.contour/main.c	2010-09-21 14:38:26 UTC (rev 43597)
@@ -169,7 +169,7 @@
 		find_con(r, c, &d1, &d2, &con1, &con2);
 	    else
 		find_con_slow(r, c, &d1, &d2, &con1, &con2);
-	    if (con2 > 0)
+	    if (!G_is_d_null_value(&con2))
 		alt_row[c] = d2 * con1 / (d1 + d2) +
 			     d1 * con2 / (d1 + d2);
 	    else



More information about the grass-commit mailing list