[GRASS-SVN] r70635 - grass/trunk/vector/v.edit

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Feb 19 18:40:24 PST 2017


Author: hcho
Date: 2017-02-19 18:40:24 -0800 (Sun, 19 Feb 2017)
New Revision: 70635

Modified:
   grass/trunk/vector/v.edit/main.c
   grass/trunk/vector/v.edit/max_distance.c
Log:
v.edit: Fix the default threshold distance

Modified: grass/trunk/vector/v.edit/main.c
===================================================================
--- grass/trunk/vector/v.edit/main.c	2017-02-20 01:47:37 UTC (rev 70634)
+++ grass/trunk/vector/v.edit/main.c	2017-02-20 02:40:24 UTC (rev 70635)
@@ -8,7 +8,7 @@
  *             Jachym Cepicky
  *             Major updates by Martin Landa <landa.martin gmail.com>
  *
- * COPYRIGHT:  (C) 2006-2014 by the GRASS Development Team
+ * COPYRIGHT:  (C) 2006-2017 by the GRASS Development Team
  *
  *             This program is free software under the GNU General
  *             Public License (>=v2). Read the file COPYING that comes

Modified: grass/trunk/vector/v.edit/max_distance.c
===================================================================
--- grass/trunk/vector/v.edit/max_distance.c	2017-02-20 01:47:37 UTC (rev 70634)
+++ grass/trunk/vector/v.edit/max_distance.c	2017-02-20 02:40:24 UTC (rev 70635)
@@ -39,6 +39,8 @@
     if (maxdistance < 0.0) {
 	G_get_window(&window);
 
+	G_begin_distance_calculations();
+
 	ew_dist1 =
 	    G_distance(window.east, window.north, window.west, window.north);
 	/* EW Dist at South Edge */



More information about the grass-commit mailing list