Skip to content

Commit

Permalink
Make NaN box independent of the end triangle size. (#8367)
Browse files Browse the repository at this point in the history
Fixes #8343
  • Loading branch information
joa-quim committed Feb 19, 2024
1 parent 8f26cc4 commit 70819dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/psscale.c
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ GMT_LOCAL void psscale_draw_colorbar (struct GMT_CTRL *GMT, struct PSSCALE_CTRL
}
if (Ctrl->D.emode & PSSCALE_NAN_LB) { /* Add NaN rectangle on left side */
nan_off += Ctrl->D.elength;
xp[0] = xp[1] = xleft - gap; xp[2] = xp[3] = xp[0] - MAX (width, Ctrl->D.elength);
xp[0] = xp[1] = xleft - gap; xp[2] = xp[3] = xp[0] - width;
for (i = 0; i < 4; i++) xp[i] -= nan_off;
yp[0] = yp[3] = width; yp[1] = yp[2] = 0.0;
if ((f = P->bfn[GMT_NAN].fill) != NULL)
Expand Down

0 comments on commit 70819dc

Please sign in to comment.