fix wrong expression for access_cond in waves_callback()

This commit is contained in:
stefan schippers 2026-08-11 00:14:38 +02:00
parent 1563b0199b
commit 8869a957cc
1 changed files with 1 additions and 1 deletions

View File

@ -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; */