[GRASS-SVN] r51847 - grass/branches/develbranch_6/vector/v.buffer2

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 28 03:44:05 PDT 2012


Author: mmetz
Date: 2012-05-28 03:44:05 -0700 (Mon, 28 May 2012)
New Revision: 51847

Modified:
   grass/branches/develbranch_6/vector/v.buffer2/main.c
Log:
v.buffer2: go thru all lines if points/lines are requested

Modified: grass/branches/develbranch_6/vector/v.buffer2/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.buffer2/main.c	2012-05-28 10:42:45 UTC (rev 51846)
+++ grass/branches/develbranch_6/vector/v.buffer2/main.c	2012-05-28 10:44:05 UTC (rev 51847)
@@ -387,11 +387,13 @@
     Vect_spatial_index_init(&si);
 
     /* Lines (and Points) */
-    if ((type & GV_POINTS) || (type & GV_LINES)) {
+    if (nlines > 0) {
 	int ltype;
 
-	if (nlines > 0)
-	    G_message(_("Buffering lines..."));
+	G_message(_("Buffering lines..."));
+
+	nlines = Vect_get_num_lines(&In);
+
 	for (line = 1; line <= nlines; line++) {
 	    int cat;
 



More information about the grass-commit mailing list