[GRASS-SVN] r36964 - grass/branches/develbranch_6/vector/v.out.ascii

svn_grass at osgeo.org svn_grass at osgeo.org
Sun May 3 05:59:02 EDT 2009


Author: hamish
Date: 2009-05-03 05:59:02 -0400 (Sun, 03 May 2009)
New Revision: 36964

Modified:
   grass/branches/develbranch_6/vector/v.out.ascii/out.c
Log:
only warn when needed

Modified: grass/branches/develbranch_6/vector/v.out.ascii/out.c
===================================================================
--- grass/branches/develbranch_6/vector/v.out.ascii/out.c	2009-05-03 08:16:48 UTC (rev 36963)
+++ grass/branches/develbranch_6/vector/v.out.ascii/out.c	2009-05-03 09:59:02 UTC (rev 36964)
@@ -99,6 +99,7 @@
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 
+
     field = atoi(field_opt->answer);
         
     if (format_opt->answer[0] == 'p')
@@ -106,7 +107,7 @@
     else
 	format = FORMAT_ALL;
 
-    if (format == FORMAT_ALL) {
+    if (format == FORMAT_ALL && column_opt->answer) {
 	G_warning(_("Parameter '%s' ignored in standard mode"),
 		  column_opt->key);
     }



More information about the grass-commit mailing list