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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 19 12:30:56 EST 2012


Author: annakrat
Date: 2012-01-19 09:30:56 -0800 (Thu, 19 Jan 2012)
New Revision: 50303

Modified:
   grass/trunk/lib/vector/vedit/delete.c
Log:
vedit: don't ask for category when area is dead

Modified: grass/trunk/lib/vector/vedit/delete.c
===================================================================
--- grass/trunk/lib/vector/vedit/delete.c	2012-01-19 16:22:25 UTC (rev 50302)
+++ grass/trunk/lib/vector/vedit/delete.c	2012-01-19 17:30:56 UTC (rev 50303)
@@ -142,6 +142,8 @@
     nareas = Vect_get_num_areas(Map);
     nremoved = 0;
     for (area = 1; area <= nareas; area++) {
+	if (!Vect_area_alive(Map, area))
+	    continue;
 	if (Vect_get_area_cat(Map, area, field) != cat)
 	    continue;
 	



More information about the grass-commit mailing list