[GRASS-SVN] r51849 - grass/branches/releasebranch_6_4/vector/v.buffer2

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 28 03:51:35 PDT 2012


Author: mmetz
Date: 2012-05-28 03:51:34 -0700 (Mon, 28 May 2012)
New Revision: 51849

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

Modified: grass/branches/releasebranch_6_4/vector/v.buffer2/main.c
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.buffer2/main.c	2012-05-28 10:50:20 UTC (rev 51848)
+++ grass/branches/releasebranch_6_4/vector/v.buffer2/main.c	2012-05-28 10:51:34 UTC (rev 51849)
@@ -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