From ba6577fb9a715ee7809463c3ca3c06276b2cb36d Mon Sep 17 00:00:00 2001 From: Esteban82 Date: Mon, 7 Apr 2025 14:32:12 -0300 Subject: [PATCH] Fix psxy and psxyz --- src/psxy.c | 2 +- src/psxyz.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/psxy.c b/src/psxy.c index 81816564009..7062593614a 100644 --- a/src/psxy.c +++ b/src/psxy.c @@ -1071,7 +1071,7 @@ static int parse (struct GMT_CTRL *GMT, struct PSXY_CTRL *Ctrl, struct GMT_OPTIO Ctrl->W.set_color = true; c[0] = '\0'; /* Chop off this modifier */ } - if (opt->arg[0] == '-' || (opt->arg[0] == '+' && opt->arg[1] != 'c')) { /* Definitively old-style args */ + if (opt->arg[0] == '-' || (opt->arg[0] == '+' && strchr("cosvz", opt->arg[1]) == NULL)) { /* Definitively old-style args */ if (gmt_M_compat_check (API->GMT, 5)) { /* Sorry */ GMT_Report (API, GMT_MSG_ERROR, "Your -W syntax is obsolete; see program usage.\n"); n_errors++; diff --git a/src/psxyz.c b/src/psxyz.c index 5c8ded89a5f..d70e44566a7 100644 --- a/src/psxyz.c +++ b/src/psxyz.c @@ -534,7 +534,7 @@ static int parse (struct GMT_CTRL *GMT, struct PSXYZ_CTRL *Ctrl, struct GMT_OPTI Ctrl->W.set_color = true; c[0] = '\0'; /* Chop off this modifier */ } - if (opt->arg[0] == '-' || (opt->arg[0] == '+' && opt->arg[1] != 'c')) { /* Definitively old-style args */ + if (opt->arg[0] == '-' || (opt->arg[0] == '+' && strchr("cosvz", opt->arg[1]) == NULL)) { /* Definitively old-style args */ if (gmt_M_compat_check (API->GMT, 5)) { /* Sorry */ GMT_Report (API, GMT_MSG_ERROR, "Your -W syntax is obsolete; see program usage.\n"); n_errors++;