Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/psxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1046,9 +1046,11 @@ static int parse (struct GMT_CTRL *GMT, struct PSXY_CTRL *Ctrl, struct GMT_OPTIO
Ctrl->M.do_draw = true;
break;
case 'r':
if (p[1] && gmt_getpen (GMT, &p[1], &Ctrl->M.xpen)) {
gmt_pen_syntax (GMT, 'M', NULL, "Option -M: The +r modifier sets pen attributes for the legend rgb exchange", NULL, 0);
n_errors++;
if (p[1]) {
if (gmt_getpen (GMT, &p[1], &Ctrl->M.xpen)) {
gmt_pen_syntax (GMT, 'M', NULL, "Option -M: The +r modifier sets pen attributes for the legend rgb exchange", NULL, 0);
n_errors++;
}
}
else /* Guesswork */
Ctrl->M.xpen.width = 2.5; /* Default pen width in points */
Expand Down
Loading