[GRASS-SVN] r39082 - grass/branches/develbranch_6/vector/v.label.sa
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Sep 8 17:35:02 EDT 2009
Author: wolf
Date: 2009-09-08 17:35:01 -0400 (Tue, 08 Sep 2009)
New Revision: 39082
Modified:
grass/branches/develbranch_6/vector/v.label.sa/labels.c
Log:
Bugfix
Modified: grass/branches/develbranch_6/vector/v.label.sa/labels.c
===================================================================
--- grass/branches/develbranch_6/vector/v.label.sa/labels.c 2009-09-08 21:31:37 UTC (rev 39081)
+++ grass/branches/develbranch_6/vector/v.label.sa/labels.c 2009-09-08 21:35:01 UTC (rev 39082)
@@ -1299,13 +1299,12 @@
*/
static int box_overlap2(struct line_pnts *a, struct line_pnts *b)
{
- int i, r = 0;
-
+ int i;
for (i = 0; i < (a->n_points - 1); i++) {
int j;
-
for (j = 0; j < (b->n_points - 1); j++) {
- r += segments_intersect(a->x[i], a->y[i],
+ int r;
+ r = segments_intersect(a->x[i], a->y[i],
a->x[i + 1], a->y[i + 1],
b->x[j], b->y[j],
b->x[j + 1], a->y[j + 1],
More information about the grass-commit
mailing list