Skip to content

Commit

Permalink
Apply changes to psxyz too.
Browse files Browse the repository at this point in the history
  • Loading branch information
joa-quim committed Jan 4, 2025
1 parent e4b83fb commit f24520b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/psxyz.c
Original file line number Diff line number Diff line change
Expand Up @@ -929,9 +929,11 @@ EXTERN_MSC int GMT_psxyz (void *V_API, int mode, void *args) {
}
}

if (gmt_check_binary_io (GMT, n_needed))
if (gmt_check_binary_io(GMT, n_needed))
Return (GMT_RUNTIME_ERROR);

if (Ctrl->N.active && GMT->common.b.active[GMT_IN]) GMT->common.b.active[2] = true; /* Signal gmtlib_process_binary_input that lats may be of |90| */

if (S.symbol == GMT_SYMBOL_QUOTED_LINE) {
if (gmt_contlabel_prep (GMT, &S.G, NULL))
Return (GMT_RUNTIME_ERROR);
Expand Down Expand Up @@ -1706,6 +1708,8 @@ EXTERN_MSC int GMT_psxyz (void *V_API, int mode, void *args) {
}
} while (true);

GMT->common.b.active[2] = false; /* Reset this because externals have long memory and -N may not be used in a future call */

if (GMT_End_IO (API, GMT_IN, 0) != GMT_NOERROR) { /* Disables further data input */
Return (API->error);
}
Expand Down

0 comments on commit f24520b

Please sign in to comment.