[GRASS-SVN] r43599 - grass/branches/develbranch_6/vector/v.surf.rst

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 21 11:44:54 EDT 2010


Author: mmetz
Date: 2010-09-21 15:44:54 +0000 (Tue, 21 Sep 2010)
New Revision: 43599

Modified:
   grass/branches/develbranch_6/vector/v.surf.rst/main.c
Log:
fix for #1063

Modified: grass/branches/develbranch_6/vector/v.surf.rst/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.surf.rst/main.c	2010-09-21 15:26:17 UTC (rev 43598)
+++ grass/branches/develbranch_6/vector/v.surf.rst/main.c	2010-09-21 15:44:54 UTC (rev 43599)
@@ -460,7 +460,7 @@
 
     if (field == 0 && zcol)
         G_fatal_error(_("Both z-coordinate and zcol attribute defined, only one is allowed"));
-    if ((!zcoord || !zcol) && scol)
+    if (!zcoord && !zcol && scol)
         G_fatal_error(_("Only smoothing column defined, zcol or -z flag is missing")); 
     if (!zcol && !zcoord && field > 0)
         G_fatal_error("Value to be interpolated needs to be defined by zcol or -z flag");



More information about the grass-commit mailing list