Browse Source

vedit: Fix snapping to BgMap

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70537 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 8 years ago
parent
commit
f4c6a63565
2 changed files with 2 additions and 2 deletions
  1. 1 1
      lib/vector/vedit/move.c
  2. 1 1
      lib/vector/vedit/vertex.c

+ 1 - 1
lib/vector/vedit/move.c

@@ -71,7 +71,7 @@ int Vedit_move_lines(struct Map_info *Map, struct Map_info **BgMap,
 
 		    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 */
 		    }

+ 1 - 1
lib/vector/vedit/vertex.c

@@ -115,7 +115,7 @@ int Vedit_move_vertex(struct Map_info *Map, struct Map_info **BgMap,
 
 				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;