From: Soeren Apel Date: Wed, 10 Jun 2020 23:09:13 +0000 (+0200) Subject: DecodeTrace: Don't start hidden_row_hider inbetween rows X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f14dee773586e9f6afbeac8b7f552fb378f36d9b;p=pulseview.git DecodeTrace: Don't start hidden_row_hider inbetween rows --- diff --git a/pv/views/trace/decodetrace.cpp b/pv/views/trace/decodetrace.cpp index d9b4691b..67c9b1c4 100644 --- a/pv/views/trace/decodetrace.cpp +++ b/pv/views/trace/decodetrace.cpp @@ -612,9 +612,12 @@ void DecodeTrace::hover_point_changed(const QPoint &hp) r.expand_marker_highlighted = false; if (hover_row) { - int row_y = get_row_y(hover_row); + const pair extents = v_extents(); + const int trace_top = get_visual_y() + extents.first; + const int trace_btm = get_visual_y() + extents.second; + if ((hp.x() > 0) && (hp.x() < (int)(ArrowSize + 3 + hover_row->title_width)) && - (hp.y() > (int)(row_y - ArrowSize)) && (hp.y() < (int)(row_y + ArrowSize))) { + (hp.y() > trace_top) && (hp.y() < trace_btm)) { hover_row->expand_marker_highlighted = true; show_hidden_rows_ = true;