Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/gmt_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -15101,7 +15101,6 @@ GMT_LOCAL int gmtinit_get_region_from_data(struct GMTAPI_CTRL *API, int family,
if (GMT_Destroy_Data (API, &Out) != GMT_OK)
return (API->error);
geo = gmt_M_is_geographic (API->GMT, GMT_IN);
if (!exact) gmt_round_wesn (wesn, geo); /* Use data range to round to nearest reasonable multiples */
/* Safety valve if w == e or s == n */
if (doubleAlmostEqualZero (wesn[XLO], wesn[XHI])) {
if (gmt_M_is_zero (wesn[XLO])) /* No info to do anything other than this */
Expand All @@ -15115,6 +15114,7 @@ GMT_LOCAL int gmtinit_get_region_from_data(struct GMTAPI_CTRL *API, int family,
else
wesn[YLO] *= 0.9, wesn[YHI] *= 1.1; /* +/- 10% of values */
}
if (!exact) gmt_round_wesn (wesn, geo); /* Use data range to round to nearest reasonable multiples */
break;
default:
GMT_Report (API, GMT_MSG_DEBUG, "gmtinit_get_region_from_data: Family %d not supported", family);
Expand Down
Loading