瀏覽代碼

v.edit: Fix the default threshold distance

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70635 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 8 年之前
父節點
當前提交
07ea624353
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 1 1
      vector/v.edit/main.c
  2. 2 0
      vector/v.edit/max_distance.c

+ 1 - 1
vector/v.edit/main.c

@@ -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

+ 2 - 0
vector/v.edit/max_distance.c

@@ -39,6 +39,8 @@ double max_distance(double maxdistance)
     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 */