[GRASS-SVN] r45178 - grass/branches/develbranch_6/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 25 05:13:48 EST 2011
Author: mmetz
Date: 2011-01-25 02:13:48 -0800 (Tue, 25 Jan 2011)
New Revision: 45178
Modified:
grass/branches/develbranch_6/lib/vector/Vlib/buffer2.c
Log:
merge r38554 from 64
Modified: grass/branches/develbranch_6/lib/vector/Vlib/buffer2.c
===================================================================
--- grass/branches/develbranch_6/lib/vector/Vlib/buffer2.c 2011-01-25 09:53:51 UTC (rev 45177)
+++ grass/branches/develbranch_6/lib/vector/Vlib/buffer2.c 2011-01-25 10:13:48 UTC (rev 45178)
@@ -1070,7 +1070,7 @@
struct line_pnts **isles;
- int isles_count = 0;
+ int isles_count = 0, n_isles;
int i, isle;
@@ -1082,8 +1082,8 @@
/* initializations */
tPoints = Vect_new_line_struct();
- isles_count = Vect_get_area_num_isles(Map, area);
- isles_allocated = isles_count;
+ n_isles = Vect_get_area_num_isles(Map, area);
+ isles_allocated = n_isles;
isles = G_malloc(isles_allocated * sizeof(struct line_pnts *));
/* outer contour */
@@ -1092,7 +1092,7 @@
Vect_append_point(outer, outer->x[0], outer->y[0], outer->z[0]);
/* inner contours */
- for (i = 0; i < isles_count; i++) {
+ for (i = 0; i < n_isles; i++) {
isle = Vect_get_area_isle(Map, area, i);
Vect_get_isle_points(Map, isle, tPoints);
More information about the grass-commit
mailing list