Skip to content

Commit 17610ee

Browse files
authored
Fix grdview Qt backend behavior with -Qt in 3-D views (#8857)
* Allow exception for -Qt
1 parent 330ec91 commit 17610ee

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
@@ -1073,7 +1073,7 @@ EXTERN_MSC int GMT_grdview(void *V_API, int mode, void *args) {
10731073
Return (API->error);
10741074
}
10751075
if (P->is_bw) Ctrl->Q.monochrome = true;
1076-
if (P->categorical && !(Ctrl->Q.mode == GRDVIEW_MESH || Ctrl->T.active)) {
1076+
if (P->categorical && !(Ctrl->Q.mode == GRDVIEW_MESH || Ctrl->Q.special || Ctrl->T.active)) {
10771077
GMT_Report (API, GMT_MSG_ERROR, "Categorical data (as implied by CPT) cannot be interpolated and require -T or just -Qm.\n");
10781078
Return (GMT_RUNTIME_ERROR);
10791079
}

0 commit comments

Comments
 (0)