Skip to content

Commit

Permalink
Option -C was not respecting the rounding set in -I (#8416)
Browse files Browse the repository at this point in the history
Fixes #8412
  • Loading branch information
joa-quim committed Mar 25, 2024
1 parent e5ef701 commit c0d993f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gmtinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,11 +777,11 @@ EXTERN_MSC int GMT_gmtinfo (void *V_API, int mode, void *args) {
if (xyzmin[col] == DBL_MAX) /* Encountered NaNs only */
low = high = GMT->session.d_NaN;
else if (col < Ctrl->I.ncol) { /* Special treatment for x and y (and perhaps more) if -I selected */
if (Ctrl->I.mode && col == GMT_X) {
if ((Ctrl->I.mode || Ctrl->I.extend) && col == GMT_X) {
low = wesn[XLO];
high = wesn[XHI];
}
else if (Ctrl->I.mode && col == GMT_Y) {
else if ((Ctrl->I.mode || Ctrl->I.extend) && col == GMT_Y) {
low = wesn[YLO];
high = wesn[YHI];
}
Expand Down

0 comments on commit c0d993f

Please sign in to comment.