[GRASS-SVN] r36966 - grass/trunk/vector/v.out.ascii

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


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

Modified:
   grass/trunk/vector/v.out.ascii/main.c
Log:
only warn when needed (merge from devbr6)

Modified: grass/trunk/vector/v.out.ascii/main.c
===================================================================
--- grass/trunk/vector/v.out.ascii/main.c	2009-05-03 10:00:05 UTC (rev 36965)
+++ grass/trunk/vector/v.out.ascii/main.c	2009-05-03 10:02:02 UTC (rev 36966)
@@ -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