@@ -3624,8 +3624,10 @@ GMT_LOCAL int gmtinit_set_titem (struct GMT_CTRL *GMT, struct GMT_PLOT_AXIS *A,
3624
3624
break;
3625
3625
}
3626
3626
3627
- GMT->current.map.frame.draw = true;
3628
- if (axis == 'z') GMT->current.map.frame.drawz = true;
3627
+ if (axis == 'z')
3628
+ GMT->current.map.frame.drawz = true;
3629
+ else
3630
+ GMT->current.map.frame.draw = true;
3629
3631
3630
3632
return (GMT_NOERROR);
3631
3633
}
@@ -3656,8 +3658,10 @@ GMT_LOCAL int gmtinit_decode_tinfo (struct GMT_CTRL *GMT, int axis, char flag, c
3656
3658
if (n_int[1]) A->item[GMT_ANNOT_UPPER+!GMT->current.map.frame.primary].special = true; /* custom interval annotations */
3657
3659
if (n_int[2]) A->item[GMT_TICK_UPPER+!GMT->current.map.frame.primary].special = true; /* custom tick annotations */
3658
3660
if (n_int[3]) A->item[GMT_GRID_UPPER+!GMT->current.map.frame.primary].special = true; /* custom gridline annotations */
3659
- GMT->current.map.frame.draw = true;
3660
- if (axis == GMT_Z) GMT->current.map.frame.drawz = true;
3661
+ if (axis == GMT_Z)
3662
+ GMT->current.map.frame.drawz = true;
3663
+ else
3664
+ GMT->current.map.frame.draw = true;
3661
3665
}
3662
3666
else
3663
3667
GMT_Report (GMT->parent, GMT_MSG_ERROR, "Cannot access custom file in -B string %c-component %s\n", str[axis], &in[1]);
@@ -3785,8 +3789,10 @@ GMT_LOCAL int gmtinit_parse4_B_option (struct GMT_CTRL *GMT, char *in) {
3785
3789
3786
3790
if (!info[i][0]) continue; /* Skip empty format string */
3787
3791
if (info[i][0] == '0' && !info[i][1]) { /* Skip format '0' */
3788
- GMT->current.map.frame.draw = true;
3789
- if (i == GMT_Z) GMT->current.map.frame.drawz = true;
3792
+ if (i == GMT_Z)
3793
+ GMT->current.map.frame.drawz = true;
3794
+ else
3795
+ GMT->current.map.frame.draw = true;
3790
3796
continue;
3791
3797
}
3792
3798
0 commit comments