Browse Source

process only lines

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@45404 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 14 years ago
parent
commit
a8ed265bfd
1 changed files with 2 additions and 3 deletions
  1. 2 3
      vector/v.build.polylines/main.c

+ 2 - 3
vector/v.build.polylines/main.c

@@ -178,9 +178,8 @@ int main(int argc, char **argv)
 
 	if (type & GV_LINES)
 	    nlines++;
-
-	/* copy points to output as they are, with cats */
-	if (type & GV_POINTS) {
+	else {
+	    /* copy points to output as they are, with cats */
 	    Vect_read_line(&map, points, Cats, line);
 	    Vect_write_line(&Out, type, points, Cats);
 	    continue;