[GRASS-SVN] r44958 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 11 13:11:16 EST 2011
Author: mmetz
Date: 2011-01-11 10:11:16 -0800 (Tue, 11 Jan 2011)
New Revision: 44958
Modified:
grass/trunk/lib/vector/Vlib/snap.c
Log:
optimize Vect_snap_lines()
Modified: grass/trunk/lib/vector/Vlib/snap.c
===================================================================
--- grass/trunk/lib/vector/Vlib/snap.c 2011-01-11 18:09:46 UTC (rev 44957)
+++ grass/trunk/lib/vector/Vlib/snap.c 2011-01-11 18:11:16 UTC (rev 44958)
@@ -277,7 +277,7 @@
int v;
int changed = 0;
- G_percent(line_idx, List_lines->n_values, 2);
+ G_percent(line_idx, List_lines->n_values, 1);
line = List_lines->value[line_idx];
@@ -475,7 +475,9 @@
if (!(ltype & type))
continue;
- Vect_list_append(List, line);
+ /* no need to check for duplicates:
+ * use dig_list_add() instead of Vect_list_append() */
+ dig_list_add(List, line);
}
Vect_snap_lines_list(Map, List, thresh, Err);
More information about the grass-commit
mailing list