From 8eecd73c50b05506f8688865a239a1ac2d6dd7bb Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Sun, 31 Mar 2024 13:36:35 +0200 Subject: [PATCH] removed impossible if() condition in backannotate_at_cursor_b_pos() --- src/callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callback.c b/src/callback.c index a39cdb41..ead316dd 100644 --- a/src/callback.c +++ b/src/callback.c @@ -271,7 +271,7 @@ void backannotate_at_cursor_b_pos(xRect *r, Graph_ctx *gr) cnt = 0; } if(xx >= start && xx <= end) { - if((dataset == -1 && sweepvar_wrap == 0) || (dataset == sweepvar_wrap)) { + if((dataset == sweepvar_wrap)) { dbg(1, "xx=%g cursor2=%g first=%d last=%d start=%g end=%g p=%d wrap=%d sweepvar_wrap=%d ofs=%d\n", xx, cursor2, first, last, start, end, p, wrap, sweepvar_wrap, ofs); if(first == -1) first = p;