[GRASS-SVN] r54897 - grass/trunk/vector/v.net.allpairs
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Feb 4 07:06:44 PST 2013
Author: mmetz
Date: 2013-02-04 07:06:44 -0800 (Mon, 04 Feb 2013)
New Revision: 54897
Modified:
grass/trunk/vector/v.net.allpairs/main.c
Log:
v.net.allpairs: fix array index
Modified: grass/trunk/vector/v.net.allpairs/main.c
===================================================================
--- grass/trunk/vector/v.net.allpairs/main.c 2013-02-04 14:20:45 UTC (rev 54896)
+++ grass/trunk/vector/v.net.allpairs/main.c 2013-02-04 15:06:44 UTC (rev 54897)
@@ -279,9 +279,9 @@
Vect_cat_set(FCats[line], afield, cat);
}
else {
- if (!BCats[line])
- BCats[line] = Vect_new_cats_struct();
- Vect_cat_set(BCats[line], afield, cat);
+ if (!BCats[abs(line)])
+ BCats[abs(line)] = Vect_new_cats_struct();
+ Vect_cat_set(BCats[abs(line)], afield, cat);
}
}
cat++;
More information about the grass-commit
mailing list