[GRASS-SVN] r46902 - grass/trunk/lib/vector/vedit

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jul 1 04:54:05 EDT 2011


Author: mmetz
Date: 2011-07-01 01:54:05 -0700 (Fri, 01 Jul 2011)
New Revision: 46902

Modified:
   grass/trunk/lib/vector/vedit/break.c
   grass/trunk/lib/vector/vedit/render.c
Log:
remove bounding boxes from vector topology (Radim's TODO): update vedit

Modified: grass/trunk/lib/vector/vedit/break.c
===================================================================
--- grass/trunk/lib/vector/vedit/break.c	2011-07-01 08:53:45 UTC (rev 46901)
+++ grass/trunk/lib/vector/vedit/break.c	2011-07-01 08:54:05 UTC (rev 46902)
@@ -172,6 +172,9 @@
 	if (!Vect_line_alive(Map, line))
 	    continue;
 
+	if (Vect_get_line_type(Map, line) & GV_POINTS)
+	    continue;
+
 	node[0] = node[1] = -1;
 	Vect_get_line_nodes(Map, line, &(node[0]), &(node[1]));
 	if (node[0] < 0 || node[1] < 0)

Modified: grass/trunk/lib/vector/vedit/render.c
===================================================================
--- grass/trunk/lib/vector/vedit/render.c	2011-07-01 08:53:45 UTC (rev 46901)
+++ grass/trunk/lib/vector/vedit/render.c	2011-07-01 08:54:05 UTC (rev 46902)
@@ -248,6 +248,9 @@
     double east, north;
     struct robject *robj;
 
+    if (Vect_get_line_type(Map, line) & GV_POINTS)
+	return;
+
     Vect_get_line_nodes(Map, line, &(nodes[0]), &(nodes[1]));
     
     for (i = 0; i < sizeof(nodes) / sizeof(int); i++) {



More information about the grass-commit mailing list