[GRASS-SVN] r58975 - grass-addons/grass7/vector/v.centerpoint

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 10 00:06:14 PST 2014


Author: mmetz
Date: 2014-02-10 00:06:13 -0800 (Mon, 10 Feb 2014)
New Revision: 58975

Modified:
   grass-addons/grass7/vector/v.centerpoint/lines.c
Log:
v.centerpoint: fix line cats

Modified: grass-addons/grass7/vector/v.centerpoint/lines.c
===================================================================
--- grass-addons/grass7/vector/v.centerpoint/lines.c	2014-02-09 22:12:07 UTC (rev 58974)
+++ grass-addons/grass7/vector/v.centerpoint/lines.c	2014-02-10 08:06:13 UTC (rev 58975)
@@ -36,6 +36,7 @@
 		continue;
 	    
 	    cat = -1;
+	    Vect_reset_cats(Cats);
 	    if (layer > 0) {
 		if (!Vect_cats_in_constraint(ICats, layer, cat_list))
 		    continue;
@@ -86,6 +87,7 @@
 		continue;
 
 	    cat = -1;
+	    Vect_reset_cats(Cats);
 	    if (layer > 0) {
 		if (!Vect_cats_in_constraint(ICats, layer, cat_list))
 		    continue;
@@ -162,6 +164,7 @@
 		continue;
 
 	    cat = -1;
+	    Vect_reset_cats(Cats);
 	    if (layer > 0) {
 		if (!Vect_cats_in_constraint(ICats, layer, cat_list))
 		    continue;



More information about the grass-commit mailing list