Skip to content

Commit

Permalink
Keep the segment headers on output. (#8527)
Browse files Browse the repository at this point in the history
  • Loading branch information
joa-quim committed Jun 21, 2024
1 parent ec2aa4c commit 206db56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gmtsimplify.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ EXTERN_MSC int GMT_gmtsimplify (void *V_API, int mode, void *args) {
S[GMT_OUT]->data[col][row] = S[GMT_IN]->data[col][index[row]];
if (smode) S[GMT_OUT]->text[row] = strdup (S[GMT_IN]->text[row]);
}
if (S[GMT_IN]->header) S[GMT_OUT]->header = strdup(S[GMT_IN]->header);
seg_out++; /* Move on to next output segment */
ns_in++; /* Input segment with points */
if (np_out) ns_out++; /* Output segment with points */
Expand Down

0 comments on commit 206db56

Please sign in to comment.