Skip to content

Commit 2884c77

Browse files
authored
Need to check for +f0 in pscoupe (#4988)
We did this in meca but forgot to duplicate in pscoupe. Closes #4986.
1 parent b8baea6 commit 2884c77

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/seis/pscoupe.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,8 +863,12 @@ static int parse (struct GMT_CTRL *GMT, struct PSCOUPE_CTRL *Ctrl, struct GMT_OP
863863
Ctrl->S.angle = atof(word);
864864
if (gmt_get_modifier (opt->arg, 'j', word) && strchr ("LCRBMT", word[0]) && strchr ("LCRBMT", word[1]))
865865
Ctrl->S.justify = gmt_just_decode (GMT, word, Ctrl->S.justify);
866-
if (gmt_get_modifier (opt->arg, 'f', word))
867-
n_errors += gmt_getfont (GMT, word, &(Ctrl->S.font));
866+
if (gmt_get_modifier (opt->arg, 'f', word)) {
867+
if (strcmp (word, "0"))
868+
n_errors += gmt_getfont (GMT, word, &(Ctrl->S.font));
869+
else
870+
Ctrl->S.font.size = 0.0;
871+
}
868872
if (gmt_get_modifier (opt->arg, 'o', word)) {
869873
if (gmt_get_pair (GMT, word, GMT_PAIR_DIM_DUP, Ctrl->S.offset) < 0) n_errors++;
870874
} else { /* Set default offset */

0 commit comments

Comments
 (0)