|
@@ -220,10 +220,13 @@ int Vedit_add_vertex(struct Map_info *Map, struct ilist *List,
|
|
if (!(type & GV_LINES))
|
|
if (!(type & GV_LINES))
|
|
continue;
|
|
continue;
|
|
|
|
|
|
|
|
+ G_debug(3, "Vedit_add_vertex(): line = %d, thresh = %f",
|
|
|
|
+ line, thresh);
|
|
|
|
+
|
|
x = Points->x;
|
|
x = Points->x;
|
|
y = Points->y;
|
|
y = Points->y;
|
|
z = Points->z;
|
|
z = Points->z;
|
|
- rewrite = 0;
|
|
|
|
|
|
+ rewrite = FALSE;
|
|
for (j = 0; j < coord->n_points; j++) {
|
|
for (j = 0; j < coord->n_points; j++) {
|
|
east = coord->x[j];
|
|
east = coord->x[j];
|
|
north = coord->y[j];
|
|
north = coord->y[j];
|
|
@@ -240,10 +243,9 @@ int Vedit_add_vertex(struct Map_info *Map, struct ilist *List,
|
|
z[seg - 1], WITHOUT_Z) > 0) {
|
|
z[seg - 1], WITHOUT_Z) > 0) {
|
|
/* add new vertex */
|
|
/* add new vertex */
|
|
Vect_line_insert_point(Points, seg, px, py, 0.0);
|
|
Vect_line_insert_point(Points, seg, px, py, 0.0);
|
|
- G_debug(3,
|
|
|
|
- "Vedit_add_vertex(): line=%d; x=%f, y=%f, index=%d",
|
|
|
|
|
|
+ G_debug(3, "Vedit_add_vertex(): line=%d; x=%f, y=%f, index=%d",
|
|
line, px, py, seg);
|
|
line, px, py, seg);
|
|
- rewrite = 1;
|
|
|
|
|
|
+ rewrite = TRUE;
|
|
nvertices_added++;
|
|
nvertices_added++;
|
|
}
|
|
}
|
|
} /* for each point */
|
|
} /* for each point */
|