From: Soeren Apel Date: Sun, 22 Dec 2019 22:47:48 +0000 (+0100) Subject: DecodeTrace: Honor a decoder's shown flag X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=8b787f41b6d33dafeb045a09c7690bbf895d483b DecodeTrace: Honor a decoder's shown flag --- diff --git a/pv/views/trace/decodetrace.cpp b/pv/views/trace/decodetrace.cpp index cc4be9e3..30f333dd 100644 --- a/pv/views/trace/decodetrace.cpp +++ b/pv/views/trace/decodetrace.cpp @@ -211,7 +211,8 @@ void DecodeTrace::paint_mid(QPainter &p, ViewItemPaintParams &pp) // Show row if there are visible annotations or when user wants to see // all rows that have annotations somewhere and this one is one of them size_t ann_count = decode_signal_->get_annotation_count(r.decode_row, current_segment_); - r.currently_visible = !annotations.empty() || (always_show_all_rows_ && (ann_count > 0)); + r.currently_visible = (!annotations.empty() || (always_show_all_rows_ && (ann_count > 0))) + && (r.decode_row.decoder()->shown()); if (r.currently_visible) { draw_annotations(annotations, p, annotation_height, pp, y,