[GRASS-SVN] r34675 - in grass/branches/develbranch_6:
lib/vector/vedit vector/v.edit
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Dec 2 13:53:07 EST 2008
Author: martinl
Date: 2008-12-02 13:53:06 -0500 (Tue, 02 Dec 2008)
New Revision: 34675
Modified:
grass/branches/develbranch_6/lib/vector/vedit/cats.c
grass/branches/develbranch_6/vector/v.edit/main.c
Log:
v.edit: don't print warning when cat is not deleted
Modified: grass/branches/develbranch_6/lib/vector/vedit/cats.c
===================================================================
--- grass/branches/develbranch_6/lib/vector/vedit/cats.c 2008-12-02 17:36:51 UTC (rev 34674)
+++ grass/branches/develbranch_6/lib/vector/vedit/cats.c 2008-12-02 18:53:06 UTC (rev 34675)
@@ -63,7 +63,7 @@
/* add new category */
if (!del) {
if (Vect_cat_set(Cats, layer, cat) < 1) {
- G_warning(_("Unable to set category %d for line %d"),
+ G_warning(_("Unable to set category %d for (feature id %d)"),
cat, line);
}
else {
@@ -71,11 +71,7 @@
}
}
else { /* delete old category */
- if (Vect_field_cat_del(Cats, layer, cat) == 0) {
- G_warning(_("Unable to delete layer/category %d/%d line %d"),
- layer, cat, line);
- }
- else {
+ if (Vect_field_cat_del(Cats, layer, cat) == 1) {
rewrite = 1;
}
}
Modified: grass/branches/develbranch_6/vector/v.edit/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.edit/main.c 2008-12-02 17:36:51 UTC (rev 34674)
+++ grass/branches/develbranch_6/vector/v.edit/main.c 2008-12-02 18:53:06 UTC (rev 34675)
@@ -200,6 +200,7 @@
if (action_mode != MODE_CREATE && action_mode != MODE_ADD) {
/* select lines */
List = Vect_new_list();
+ G_message(_("Selecting features..."));
if (action_mode == MODE_COPY && BgMap && BgMap[0]) {
List = select_lines(BgMap[0], action_mode, ¶ms, thresh, List);
}
More information about the grass-commit
mailing list