[GRASS-SVN] r69348 - grass/trunk/vector/v.overlay
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Sep 2 13:06:55 PDT 2016
Author: mmetz
Date: 2016-09-02 13:06:55 -0700 (Fri, 02 Sep 2016)
New Revision: 69348
Modified:
grass/trunk/vector/v.overlay/area_area.c
grass/trunk/vector/v.overlay/line_area.c
Log:
v.overlay: fix output layer handling
Modified: grass/trunk/vector/v.overlay/area_area.c
===================================================================
--- grass/trunk/vector/v.overlay/area_area.c 2016-09-02 18:34:57 UTC (rev 69347)
+++ grass/trunk/vector/v.overlay/area_area.c 2016-09-02 20:06:55 UTC (rev 69348)
@@ -199,7 +199,7 @@
if (Cats->field[i] == field[input]) {
ATTR *at;
- Vect_cat_set(Centr[area].cat[input], ofield[input + 1],
+ Vect_cat_set(Centr[area].cat[input], field[input],
Cats->cat[i]);
/* Mark as used */
Modified: grass/trunk/vector/v.overlay/line_area.c
===================================================================
--- grass/trunk/vector/v.overlay/line_area.c 2016-09-02 18:34:57 UTC (rev 69347)
+++ grass/trunk/vector/v.overlay/line_area.c 2016-09-02 20:06:55 UTC (rev 69348)
@@ -426,7 +426,7 @@
if (ofield[2] > 0 && field[1] > 0 && ofield[1] != ofield[2]) {
for (i = 0; i < ACats->n_cats; i++) {
- if (Cats->field[i] == field[1])
+ if (ACats->field[i] == field[1])
Vect_cat_set(OCats, ofield[2], ACats->cat[i]);
}
}
More information about the grass-commit
mailing list