diff --git a/src/psxyz.c b/src/psxyz.c index 168bdcd6ee4..5c8ded89a5f 100644 --- a/src/psxyz.c +++ b/src/psxyz.c @@ -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); @@ -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); }