removed impossible if() condition in backannotate_at_cursor_b_pos()

This commit is contained in:
stefan schippers 2024-03-31 13:36:35 +02:00
parent 9c5a1a9816
commit 8eecd73c50
1 changed files with 1 additions and 1 deletions

View File

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