[GRASS-SVN] r36965 - grass/branches/releasebranch_6_4/vector/v.out.ascii

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


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

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

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