فهرست منبع

v.select fn def update

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@52537 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 13 سال پیش
والد
کامیت
ad3f57d7c8
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      vector/v.select/overlap.c
  2. 1 1
      vector/v.select/select.c

+ 1 - 1
vector/v.select/overlap.c

@@ -57,7 +57,7 @@ int line_overlap_area(struct Map_info *LMap, int line, struct Map_info *AMap,
 
     /* Try if any of line vertices is within area */
     for (i = 0; i < LPoints->n_points; i++) {
-	if (Vect_point_in_area(LPoints->x[i], LPoints->y[i], AMap, area, box)) {
+	if (Vect_point_in_area(LPoints->x[i], LPoints->y[i], AMap, area, &box)) {
 	    G_debug(4, "  -> line vertex inside area");
 	    return 1;
 	}

+ 1 - 1
vector/v.select/select.c

@@ -292,7 +292,7 @@ int select_lines(struct Map_info *aIn, int atype, int afield,
 			}
 			else {
 			    if (Vect_point_in_area(BPoints->x[0], BPoints->y[0], aIn,
-			                           aarea, abox)) {
+			                           aarea, &abox)) {
 				found = 1;
 				break;
 			    }