Skip to content

Commit

Permalink
v.overlay: fix output layer handling
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.osgeo.org/grass/grass/trunk@69348 15284696-431f-4ddb-bdfa-cd5b030d7da7
  • Loading branch information
metzm committed Sep 2, 2016
1 parent 9f59a50 commit e4fcd35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vector/v.overlay/area_area.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ int area_area(struct Map_info *In, int *field, struct Map_info *Tmp,
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 */
Expand Down
2 changes: 1 addition & 1 deletion vector/v.overlay/line_area.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ int line_area(struct Map_info *In, int *field, struct Map_info *Tmp,

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]);
}
}
Expand Down

0 comments on commit e4fcd35

Please sign in to comment.