From 9d99ce96aa6e6af7928670531b78f8e88c835a3d Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Mon, 15 Dec 2025 11:03:22 +0800 Subject: [PATCH] grdview: Fix the bug for the default z-plane when only -N is set --- src/grdview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grdview.c b/src/grdview.c index a53644118d0..a03bfb45ace 100644 --- a/src/grdview.c +++ b/src/grdview.c @@ -608,9 +608,9 @@ static int parse (struct GMT_CTRL *GMT, struct GRDVIEW_CTRL *Ctrl, struct GMT_OP n_errors += gmt_default_option_error (GMT, opt); break; case 'N': /* Facade */ + n_errors += gmt_M_repeated_module_option (API, Ctrl->N.active); if (opt->arg[0]) { char colors[GMT_LEN64] = {""}; - n_errors += gmt_M_repeated_module_option (API, Ctrl->N.active); if ((c = strstr (opt->arg, "+g")) != NULL) { /* Gave modifier +g */ c[0] = '\0'; /* Truncate string temporarily */ if (opt->arg[0])