From 8869a957ccad366b07bb0eb25ce60aa26aff6261 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Tue, 11 Aug 2026 00:14:38 +0200 Subject: [PATCH] fix wrong expression for access_cond in waves_callback() --- src/callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callback.c b/src/callback.c index 3d9b1cf9..c30cf814 100644 --- a/src/callback.c +++ b/src/callback.c @@ -436,7 +436,7 @@ static int waves_callback(int event, int mx, int my, KeySym key, int button, int int save_mouse_at_end = 0, clear_graphpan_at_end = 0; int track_dset = -2; /* used to find dataset of closest wave to mouse if 't' is pressed */ xRect *r = NULL; - int access_cond = graph_select_to_zoom && (!graph_use_ctrl_key || (state & ControlMask)); + int access_cond = graph_select_to_zoom || (!graph_use_ctrl_key || (state & ControlMask)); dbg(1, "uistate=%d, graph_flags=%d\n", xctx->ui_state, xctx->graph_flags); /* if(event != -3 && !xctx->raw) return 0; */