[GRASS-SVN] r54300 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Dec 15 15:15:02 PST 2012


Author: mmetz
Date: 2012-12-15 15:15:02 -0800 (Sat, 15 Dec 2012)
New Revision: 54300

Modified:
   grass/trunk/lib/vector/Vlib/cats.c
Log:
Vlib: fix Vect_cats_set_constraint() warning

Modified: grass/trunk/lib/vector/Vlib/cats.c
===================================================================
--- grass/trunk/lib/vector/Vlib/cats.c	2012-12-15 19:15:05 UTC (rev 54299)
+++ grass/trunk/lib/vector/Vlib/cats.c	2012-12-15 23:15:02 UTC (rev 54300)
@@ -567,8 +567,8 @@
 	list = Vect_new_cat_list();
 	
 	ret = Vect_array_to_cat_list(cats, ncats, list);
-	if (ret > 0)
-	    G_warning(_("%d errors in '%s' option"), ret, "where");
+	if (ret == 0)
+	    G_warning(_("No categories selected with '%s' option"), "where");
 	
 	if (cats)
 	    G_free(cats);



More information about the grass-commit mailing list