[GRASS-SVN] r38554 -
grass/branches/releasebranch_6_4/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 31 09:55:51 EDT 2009
Author: mmetz
Date: 2009-07-31 09:55:51 -0400 (Fri, 31 Jul 2009)
New Revision: 38554
Modified:
grass/branches/releasebranch_6_4/lib/vector/Vlib/buffer2.c
Log:
partial fix for ticket #699
Modified: grass/branches/releasebranch_6_4/lib/vector/Vlib/buffer2.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/vector/Vlib/buffer2.c 2009-07-31 13:14:23 UTC (rev 38553)
+++ grass/branches/releasebranch_6_4/lib/vector/Vlib/buffer2.c 2009-07-31 13:55:51 UTC (rev 38554)
@@ -1069,7 +1069,7 @@
struct line_pnts **isles;
- int isles_count = 0;
+ int isles_count = 0, n_isles;
int i, isle;
@@ -1081,8 +1081,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 */
@@ -1091,7 +1091,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