瀏覽代碼

Vlib: fix Vect_cats_set_constraint() warning

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54300 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 12 年之前
父節點
當前提交
289cb8b45b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/vector/Vlib/cats.c

+ 2 - 2
lib/vector/Vlib/cats.c

@@ -567,8 +567,8 @@ struct cat_list *Vect_cats_set_constraint(struct Map_info *Map, int layer,
 	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);