[GRASS-SVN] r45179 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 25 05:14:06 EST 2011
Author: mmetz
Date: 2011-01-25 02:14:06 -0800 (Tue, 25 Jan 2011)
New Revision: 45179
Modified:
grass/trunk/lib/vector/Vlib/buffer2.c
Log:
merge r38554 from 64
Modified: grass/trunk/lib/vector/Vlib/buffer2.c
===================================================================
--- grass/trunk/lib/vector/Vlib/buffer2.c 2011-01-25 10:13:48 UTC (rev 45178)
+++ grass/trunk/lib/vector/Vlib/buffer2.c 2011-01-25 10:14:06 UTC (rev 45179)
@@ -1024,7 +1024,8 @@
struct line_pnts *tPoints, *outer;
struct line_pnts **isles;
- int isles_count = 0;
+ int isles_count = 0, n_isles;
+
int i, isle;
int more = 8;
int isles_allocated = 0;
@@ -1033,8 +1034,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 */
@@ -1043,7 +1044,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