[GRASS-SVN] r44959 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 11 13:12:02 EST 2011
Author: mmetz
Date: 2011-01-11 10:12:02 -0800 (Tue, 11 Jan 2011)
New Revision: 44959
Modified:
grass/trunk/lib/vector/Vlib/bridges.c
Log:
optimize remove_bridges()
Modified: grass/trunk/lib/vector/Vlib/bridges.c
===================================================================
--- grass/trunk/lib/vector/Vlib/bridges.c 2011-01-11 18:11:16 UTC (rev 44958)
+++ grass/trunk/lib/vector/Vlib/bridges.c 2011-01-11 18:12:02 UTC (rev 44959)
@@ -147,7 +147,7 @@
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");
More information about the grass-commit
mailing list