Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions src/grdview.c
Original file line number Diff line number Diff line change
Expand Up @@ -681,8 +681,8 @@ static int parse (struct GMT_CTRL *GMT, struct GRDVIEW_CTRL *Ctrl, struct GMT_OP
Ctrl->S.value = sval;
break;
case 'T': /* Tile plot -T[+s][+o<pen>] */
Ctrl->T.active = true;
if (strchr (opt->arg, '+') || gmt_M_compat_check (GMT, 6)) { /* New syntax */
Ctrl->T.active = true; /* Plot as tiles */
if (opt->arg[0] && (strchr (opt->arg, '+') || gmt_M_compat_check (GMT, 6))) { /* New syntax */
if (strstr (opt->arg, "+s")) Ctrl->T.skip = true;
if ((c = strstr (opt->arg, "+o")) && gmt_getpen (GMT, &c[2], &Ctrl->T.pen)) {
gmt_pen_syntax (GMT, 'T', NULL, " ", 0);
Expand All @@ -691,7 +691,7 @@ static int parse (struct GMT_CTRL *GMT, struct GRDVIEW_CTRL *Ctrl, struct GMT_OP
else
Ctrl->T.outline = true;
}
else { /* Old-style syntax -T[s][o<pen>] */
else if (opt->arg[0]) { /* Old-style syntax -T[s][o<pen>] */
k = 0;
if (opt->arg[0] == 's') Ctrl->T.skip = true, k = 1;
if (opt->arg[k] == 'o') { /* Want tile outline also */
Expand Down
Binary file modified test/grdview/grdview.ps
Binary file not shown.
8 changes: 4 additions & 4 deletions test/grdview/grdview.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ $view -O -K -R-0.5/1.5/0/2 -X4c -Qs
$contour -K
$view -O -K -R-1/3/-1/3 -X4c -Qs
$contour -K
$view -O -K -Towhite -R-0.5/2.5/-0.5/2.5 -X-12c -Y-4c
$view -O -K -T+owhite -R-0.5/2.5/-0.5/2.5 -X-12c -Y-4c
label -T $3
$view -O -K -Towhite -R0/2/0/2 -X4c
$view -O -K -Towhite -R-0.5/1.5/0/2 -X4c
$view -O -K -Towhite -R-1/3/-1/3 -X4c
$view -O -K -T+owhite -R0/2/0/2 -X4c
$view -O -K -T+owhite -R-0.5/1.5/0/2 -X4c
$view -O -K -T+owhite -R-1/3/-1/3 -X4c
$view -Qi100 -O -K -R-0.5/2.5/-0.5/2.5 -X-12c -Y-4c
$contour -K
label -Qi100 $3
Expand Down