[GRASS-SVN] r51072 - grass/trunk/vector/v.edit

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 16 06:55:43 EDT 2012


Author: martinl
Date: 2012-03-16 03:55:43 -0700 (Fri, 16 Mar 2012)
New Revision: 51072

Modified:
   grass/trunk/vector/v.edit/main.c
Log:
v.edit: don't show message (features added) when failing


Modified: grass/trunk/vector/v.edit/main.c
===================================================================
--- grass/trunk/vector/v.edit/main.c	2012-03-16 10:53:04 UTC (rev 51071)
+++ grass/trunk/vector/v.edit/main.c	2012-03-16 10:55:43 UTC (rev 51072)
@@ -253,11 +253,12 @@
 	num_lines = Vect_get_num_lines(&Map);
 	
 	ret = Vect_read_ascii(ascii, &Map);
-	G_message(_("%d features added"), ret);
 	if (ret > 0) {
 	    int iline;
 	    struct ilist *List_added;
 	    
+	    G_message(_("%d features added"), ret);
+	    
 	    List_added = Vect_new_list();
 	    for (iline = num_lines + 1; iline <= Vect_get_num_lines(&Map); iline++)
 		Vect_list_append(List_added, iline);



More information about the grass-commit mailing list