From 6f68c3f6066fd1ebfe768fdf2488a375b58f86cb Mon Sep 17 00:00:00 2001 From: Esteban82 Date: Fri, 28 Aug 2026 11:53:50 -0300 Subject: [PATCH] psevents: Allow -R to be determined automatically from input data Change THIS_MODULE_NEEDS from "JR" to "Jd" so that when -R is not given, gmtinit_determine_R_option_from_data() / gmtinit_set_missing_R_from_datasets() in gmt_init.c will compute the bounding box from the input dataset (equivalent to running gmtinfo on it) and inject it before the module parses options. This matches the existing behavior of the other plotting modules that read dataset input, such as psxy, psxyz, pscontour, psclip, pswiggle, psternary and psmask, all of which already use "Jd". Assisted-by: Claude Sonnet 5 (Medium effort) --- src/psevents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/psevents.c b/src/psevents.c index f663bb9bbe3..bc54ca99e50 100644 --- a/src/psevents.c +++ b/src/psevents.c @@ -31,7 +31,7 @@ #define THIS_MODULE_LIB "core" #define THIS_MODULE_PURPOSE "Plot event symbols, lines, polygons and labels for one moment in time" #define THIS_MODULE_KEYS "?}" -#define THIS_MODULE_NEEDS "JR" +#define THIS_MODULE_NEEDS "Jd" #define THIS_MODULE_OPTIONS "-:>BJKOPRUVXYabdefhilpqtw" enum Psevent { /* Misc. named array indices */