[GRASS-SVN] r54440 - grass/trunk/vector/v.in.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 28 05:50:06 PST 2012


Author: martinl
Date: 2012-12-28 05:50:02 -0800 (Fri, 28 Dec 2012)
New Revision: 54440

Modified:
   grass/trunk/vector/v.in.ogr/main.c
Log:
v.in.ogr: fix message when no layer is selected


Modified: grass/trunk/vector/v.in.ogr/main.c
===================================================================
--- grass/trunk/vector/v.in.ogr/main.c	2012-12-28 11:59:25 UTC (rev 54439)
+++ grass/trunk/vector/v.in.ogr/main.c	2012-12-28 13:50:02 UTC (rev 54440)
@@ -393,7 +393,8 @@
 	if (nlayers < 1)
 	    G_fatal_error(_("No OGR layers available"));
 	output = G_store(layer_names[0]);
-	G_message(_("All available OGR layers will be imported into vector map <%s>"), output);
+	if (param.layer->answer == NULL)
+	    G_warning(_("All available OGR layers will be imported into vector map <%s>"), output);
     }
     
     if (!param.outloc->answer) {	/* Check if the map exists */



More information about the grass-commit mailing list