[GRASS-SVN] r74387 - grass/trunk/vector/v.buffer
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Apr 17 00:51:30 PDT 2019
Author: mmetz
Date: 2019-04-17 00:51:30 -0700 (Wed, 17 Apr 2019)
New Revision: 74387
Modified:
grass/trunk/vector/v.buffer/main.c
Log:
v.buffer: +test for zero distance, see #3814
Modified: grass/trunk/vector/v.buffer/main.c
===================================================================
--- grass/trunk/vector/v.buffer/main.c 2019-04-16 16:14:06 UTC (rev 74386)
+++ grass/trunk/vector/v.buffer/main.c 2019-04-17 07:51:30 UTC (rev 74387)
@@ -666,6 +666,11 @@
G_debug(2, _("The tolerance in map units: %g"),
unit_tolerance);
}
+
+ if (da <= 0) {
+ G_warning(_("Distances must be positive, ignoring distance %g"), da);
+ continue;
+ }
Vect_line_prune(Points);
if (ltype & GV_POINTS || Points->n_points == 1) {
More information about the grass-commit
mailing list