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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Feb 5 15:42:42 EST 2008


Author: martinl
Date: 2008-02-05 15:42:42 -0500 (Tue, 05 Feb 2008)
New Revision: 29961

Modified:
   grass/trunk/vector/v.edit/lib/move.c
   grass/trunk/vector/v.edit/lib/vertex.c
Log:
v.edit: fix typo in variable

Modified: grass/trunk/vector/v.edit/lib/move.c
===================================================================
--- grass/trunk/vector/v.edit/lib/move.c	2008-02-05 20:35:51 UTC (rev 29960)
+++ grass/trunk/vector/v.edit/lib/move.c	2008-02-05 20:42:42 UTC (rev 29961)
@@ -71,7 +71,7 @@
 		    /* check also background maps */
 		    int bgi;
 		    for (bgi = 0; bgi < nbgmaps; bgi++) {
-			if (Vedit_snap_point(BgMap[i], line, &x[j], &y[j], &z[j], thresh,
+			if (Vedit_snap_point(BgMap[bgi], line, &x[j], &y[j], &z[j], thresh,
 					     (snap == SNAPVERTEX) ? 1 : 0))
 			    break; /* snapped, don't continue */
 		    }

Modified: grass/trunk/vector/v.edit/lib/vertex.c
===================================================================
--- grass/trunk/vector/v.edit/lib/vertex.c	2008-02-05 20:35:51 UTC (rev 29960)
+++ grass/trunk/vector/v.edit/lib/vertex.c	2008-02-05 20:42:42 UTC (rev 29961)
@@ -109,7 +109,7 @@
 				/* check also background maps */
 				int bgi;
 				for (bgi = 0; bgi < nbgmaps; bgi++) {
-				    if (Vedit_snap_point(BgMap[i], line, &x[k], &y[k], &z[k], thresh,
+				    if (Vedit_snap_point(BgMap[bgi], line, &x[k], &y[k], &z[k], thresh,
 							 (snap == SNAPVERTEX) ? 1 : 0))
 					moved[k] = 2;
 					break; /* snapped, don't continue */



More information about the grass-commit mailing list