Skip to content

Commit

Permalink
Remove the incompatibility (regression) between the -I and -Q options. (
Browse files Browse the repository at this point in the history
#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.
  • Loading branch information
joa-quim authored Dec 16, 2024
1 parent fe9a841 commit b34b125
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/grdimage.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit b34b125

Please sign in to comment.