From b34b125857afedea82fb5b4c2589298df267c774 Mon Sep 17 00:00:00 2001 From: Joaquim Date: Mon, 16 Dec 2024 12:01:39 +0000 Subject: [PATCH] Remove the incompatibility (regression) between the -I and -Q options. (#8643) See forum post https://forum.generic-mapping-tools.org/t/grdimage-transparency-of-nan-values/5641/11 But testing this further would be good. There must have been some reason to exclude the -I -Q combination. --- src/grdimage.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/grdimage.c b/src/grdimage.c index b732aa95895..f635d669345 100644 --- a/src/grdimage.c +++ b/src/grdimage.c @@ -1709,10 +1709,6 @@ EXTERN_MSC int GMT_grdimage(void *V_API, int mode, void *args) { } if (!Ctrl->C.active) /* Set no specific CPT so we turn -C on to use current or default CPT */ Ctrl->C.active = true; /* Use default CPT (GMT->current.setting.cpt) and autostretch or under modern reuse current CPT */ - if (got_z_grid && Ctrl->Q.mask_color && use_intensity_grid) { - GMT_Report (API, GMT_MSG_ERROR, "Option -Q: Cannot specify a transparent color for grids when intensities are also used\n"); - Return (API->error); - } } if (got_z_grid) header_work = Grid_orig->header; /* OK, we are in GRID mode and this was not set previously. Do it now. */