From c0d993fd7fad3d4479114ced257833c95d17c06a Mon Sep 17 00:00:00 2001 From: Joaquim Date: Mon, 25 Mar 2024 13:41:23 +0000 Subject: [PATCH] Option -C was not respecting the rounding set in -I (#8416) Fixes #8412 --- src/gmtinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gmtinfo.c b/src/gmtinfo.c index aa14f8fdf93..177843f9ea9 100644 --- a/src/gmtinfo.c +++ b/src/gmtinfo.c @@ -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]; }