]> sigrok.org Git - pulseview.git/commitdiff
DecodeTrace: Honor a decoder's shown flag
authorSoeren Apel <redacted>
Sun, 22 Dec 2019 22:47:48 +0000 (23:47 +0100)
committerSoeren Apel <redacted>
Mon, 23 Dec 2019 00:04:04 +0000 (01:04 +0100)
pv/views/trace/decodetrace.cpp

index cc4be9e389671728e7f11f20da22c93808a2292b..30f333ddc7c4fe033ed439653f57354ab6fd68fd 100644 (file)
@@ -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,