Sfoglia il codice sorgente

optimize remove_bridges()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@44959 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 14 anni fa
parent
commit
c1c53cadc7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/vector/Vlib/bridges.c

+ 1 - 1
lib/vector/Vlib/bridges.c

@@ -147,7 +147,7 @@ remove_bridges(struct Map_info *Map, int chtype, struct Map_info *Err)
 	    if (Vect_val_in_list(CycleList, abs(next_line)))	/* other side -> bridge chain */
 		Vect_list_append(BridgeList, abs(next_line));
 	    else
-		Vect_list_append(CycleList, abs(next_line));
+		dig_list_add(CycleList, abs(next_line)); /* not in list, can add new line fast */
 
 	    if (abs(next_line) == abs(current_line)) {
 		G_debug(4, "  dangle -> no bridge");