Skip to content

Commit 812e370

Browse files
authored
grdview: Fix the bug for the default z-plane when only -N is set (#8838)
1 parent 9b20f8e commit 812e370

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/grdview.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,9 +608,9 @@ static int parse (struct GMT_CTRL *GMT, struct GRDVIEW_CTRL *Ctrl, struct GMT_OP
608608
n_errors += gmt_default_option_error (GMT, opt);
609609
break;
610610
case 'N': /* Facade */
611+
n_errors += gmt_M_repeated_module_option (API, Ctrl->N.active);
611612
if (opt->arg[0]) {
612613
char colors[GMT_LEN64] = {""};
613-
n_errors += gmt_M_repeated_module_option (API, Ctrl->N.active);
614614
if ((c = strstr (opt->arg, "+g")) != NULL) { /* Gave modifier +g<fill> */
615615
c[0] = '\0'; /* Truncate string temporarily */
616616
if (opt->arg[0])

0 commit comments

Comments
 (0)