[GRASS-SVN] r55858 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Apr 17 14:43:13 PDT 2013
Author: mmetz
Date: 2013-04-17 14:43:13 -0700 (Wed, 17 Apr 2013)
New Revision: 55858
Modified:
grass/trunk/lib/vector/Vlib/break_lines.c
Log:
Vlib: reinstate Vect_break_lines() speed-up (sorry for the noise)
Modified: grass/trunk/lib/vector/Vlib/break_lines.c
===================================================================
--- grass/trunk/lib/vector/Vlib/break_lines.c 2013-04-17 21:19:53 UTC (rev 55857)
+++ grass/trunk/lib/vector/Vlib/break_lines.c 2013-04-17 21:43:13 UTC (rev 55858)
@@ -320,9 +320,13 @@
if (!break_a && !break_b)
continue;
- /* DO NOT check intersection of aline with bline only once
- * because it can happen that one line is broken, but not
- * the other line, in which case some breaks are not detected */
+ /* check intersection of aline with bline only once
+ * if possible */
+ if (break_a && break_b &&
+ aline > bline &&
+ (!List_ref || b_is_ref)) {
+ continue;
+ }
G_debug(3, " j = %d bline = %d", j, bline);
More information about the grass-commit
mailing list