[GRASS-SVN] r51018 - grass/trunk/display/d.vect
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Mar 7 17:03:17 EST 2012
Author: martinl
Date: 2012-03-07 14:03:17 -0800 (Wed, 07 Mar 2012)
New Revision: 51018
Modified:
grass/trunk/display/d.vect/area.c
Log:
d.vect: skip invalid areas
Modified: grass/trunk/display/d.vect/area.c
===================================================================
--- grass/trunk/display/d.vect/area.c 2012-03-07 17:51:15 UTC (rev 51017)
+++ grass/trunk/display/d.vect/area.c 2012-03-07 22:03:17 UTC (rev 51018)
@@ -130,6 +130,10 @@
/* fill */
Vect_get_area_points(Map, area, APoints);
G_debug(3, "\tn_points = %d", APoints->n_points);
+ if (APoints->n_points < 3) {
+ G_warning(_("Invalid area %d skipped"), area);
+ continue;
+ }
Vect_reset_line(Points);
Vect_append_points(Points, APoints, GV_FORWARD);
More information about the grass-commit
mailing list