[GRASS-SVN] r55993 - grass/trunk/lib/vector/diglib

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Apr 25 05:30:25 PDT 2013


Author: mmetz
Date: 2013-04-25 05:30:25 -0700 (Thu, 25 Apr 2013)
New Revision: 55993

Modified:
   grass/trunk/lib/vector/diglib/plus_line.c
Log:
diglib: follow node-line logic

Modified: grass/trunk/lib/vector/diglib/plus_line.c
===================================================================
--- grass/trunk/lib/vector/diglib/plus_line.c	2013-04-25 10:46:18 UTC (rev 55992)
+++ grass/trunk/lib/vector/diglib/plus_line.c	2013-04-25 12:30:25 UTC (rev 55993)
@@ -262,7 +262,7 @@
 	    Node->angles[i - 1] = Node->angles[i];
 	}
 	else {
-	    if (abs(Node->lines[i]) == line)
+	    if (Node->lines[i] == line)
 		mv = 1;
 	}
     }
@@ -298,11 +298,12 @@
 	    Node->angles[i - 1] = Node->angles[i];
 	}
 	else {
-	    if (abs(Node->lines[i]) == line)
+	    if (Node->lines[i] == -line)
 		mv = 1;
 	}
     }
     Node->n_lines--;
+
     if (Node->n_lines == 0) {
 	G_debug(3, "    node %d has 0 lines -> delete", N2);
 	dig_spidx_del_node(plus, N2);



More information about the grass-commit mailing list