Skip to content

Commit

Permalink
v.decimate (#331)
Browse files Browse the repository at this point in the history
copy tables only when topology is available
  • Loading branch information
metzm committed Feb 6, 2020
1 parent 92748d3 commit b4862cf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vector/v.decimate/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,13 +478,13 @@ int main(int argc, char **argv)

Vect_hist_command(&voutput);

if (write_context.write_cats == TRUE && !notab_flag->answer) {
copy_tabs(&vinput, &voutput);
}

Vect_close(&vinput);
if (!notopo_flag->answer)
if (!notopo_flag->answer) {
Vect_build(&voutput);
if (write_context.write_cats == TRUE && !notab_flag->answer) {
copy_tabs(&vinput, &voutput);
}
}
Vect_close(&voutput);

if (do_grid_decimation)
Expand Down

0 comments on commit b4862cf

Please sign in to comment.