From 7368344d850b3752ff0339ac1dfc62ac8b3c09f5 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Fri, 10 Nov 2023 18:50:58 +0100 Subject: [PATCH] waves callback(): absolute X panning will not switch raw file if no rawfile is specified in graph --- src/callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callback.c b/src/callback.c index 17d145a1..e15e6eec 100644 --- a/src/callback.c +++ b/src/callback.c @@ -522,7 +522,7 @@ static int waves_callback(int event, int mx, int my, KeySym key, int button, int my_strdup2(_ALLOC_ID_, &rawfile, get_tok_value(r->prop_ptr, "rawfile", 0)); my_strdup2(_ALLOC_ID_, &sim_type, get_tok_value(r->prop_ptr, "sim_type", 0)); - switched = extra_rawfile(2, rawfile, sim_type); + if(rawfile[0] && sim_type[0]) switched = extra_rawfile(2, rawfile, sim_type); my_free(_ALLOC_ID_, &rawfile); my_free(_ALLOC_ID_, &sim_type);