[GRASS-SVN] r70537 - grass/trunk/lib/vector/vedit

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Feb 11 21:51:41 PST 2017


Author: hcho
Date: 2017-02-11 21:51:40 -0800 (Sat, 11 Feb 2017)
New Revision: 70537

Modified:
   grass/trunk/lib/vector/vedit/move.c
   grass/trunk/lib/vector/vedit/vertex.c
Log:
vedit: Fix snapping to BgMap

Modified: grass/trunk/lib/vector/vedit/move.c
===================================================================
--- grass/trunk/lib/vector/vedit/move.c	2017-02-11 23:10:37 UTC (rev 70536)
+++ grass/trunk/lib/vector/vedit/move.c	2017-02-12 05:51:40 UTC (rev 70537)
@@ -71,7 +71,7 @@
 
 		    for (bgi = 0; bgi < nbgmaps; bgi++) {
 			if (Vedit_snap_point
-			    (BgMap[bgi], line, &x[j], &y[j], &z[j], thresh,
+			    (BgMap[bgi], -1, &x[j], &y[j], &z[j], thresh,
 			     (snap == SNAPVERTEX) ? 1 : 0))
 			    break;	/* snapped, don't continue */
 		    }

Modified: grass/trunk/lib/vector/vedit/vertex.c
===================================================================
--- grass/trunk/lib/vector/vedit/vertex.c	2017-02-11 23:10:37 UTC (rev 70536)
+++ grass/trunk/lib/vector/vedit/vertex.c	2017-02-12 05:51:40 UTC (rev 70537)
@@ -115,7 +115,7 @@
 
 				for (bgi = 0; bgi < nbgmaps; bgi++) {
 				    if (Vedit_snap_point
-					(BgMap[bgi], 0, &x[k], &y[k],
+					(BgMap[bgi], -1, &x[k], &y[k],
 					 &z[k], thresh_snap,
 					 (snap == SNAPVERTEX) ? 1 : 0))
 					moved[k] = 2;



More information about the grass-commit mailing list