[GRASS-SVN] r64478 - grass/branches/releasebranch_6_4/vector/v.generalize

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Feb 6 02:30:42 PST 2015


Author: mmetz
Date: 2015-02-06 02:30:41 -0800 (Fri, 06 Feb 2015)
New Revision: 64478

Modified:
   grass/branches/releasebranch_6_4/vector/v.generalize/main.c
Log:
v.generalize: fix select boundaries

Modified: grass/branches/releasebranch_6_4/vector/v.generalize/main.c
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.generalize/main.c	2015-02-06 04:54:01 UTC (rev 64477)
+++ grass/branches/releasebranch_6_4/vector/v.generalize/main.c	2015-02-06 10:30:41 UTC (rev 64478)
@@ -392,6 +392,11 @@
 		    
 		    /* check if any of the centroids is selected */
 		    Vect_get_line_areas(&Out, i, &left, &right);
+		    if (left < 0)
+			left = Vect_get_isle_area(&Out, abs(left));
+		    if (right < 0)
+			right = Vect_get_isle_area(&Out, abs(right));
+
 		    if (left > 0) {
 			left = Vect_get_area_centroid(&Out, left);
 			do_line = varray->c[left];



More information about the grass-commit mailing list