[GRASS-SVN] r74388 - grass/branches/releasebranch_7_6/vector/v.buffer
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Apr 17 00:53:07 PDT 2019
Author: mmetz
Date: 2019-04-17 00:53:07 -0700 (Wed, 17 Apr 2019)
New Revision: 74388
Modified:
grass/branches/releasebranch_7_6/vector/v.buffer/main.c
Log:
v.buffer: +test for zero distance, see #3814 (backport trunk r74387)
Modified: grass/branches/releasebranch_7_6/vector/v.buffer/main.c
===================================================================
--- grass/branches/releasebranch_7_6/vector/v.buffer/main.c 2019-04-17 07:51:30 UTC (rev 74387)
+++ grass/branches/releasebranch_7_6/vector/v.buffer/main.c 2019-04-17 07:53:07 UTC (rev 74388)
@@ -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