]> sigrok.org Git - pulseview.git/commitdiff
DecodeTrace: Always show row if its class selector is showing
authorSoeren Apel <redacted>
Fri, 31 Jan 2020 18:26:22 +0000 (19:26 +0100)
committerSoeren Apel <redacted>
Fri, 31 Jan 2020 18:26:22 +0000 (19:26 +0100)
pv/views/trace/decodetrace.cpp

index 3afb45ac931cad9d82c74c953ca22a420c08a43a..5cc03fa42ef75f326ed6f46897b54b94d67b5591 100644 (file)
@@ -296,8 +296,8 @@ void DecodeTrace::paint_mid(QPainter &p, ViewItemPaintParams &pp)
                r.currently_visible = !annotations.empty();
                if (!r.currently_visible) {
                        size_t ann_count = decode_signal_->get_annotation_count(r.decode_row, current_segment_);
-                       r.currently_visible = (always_show_all_rows_ || r.has_hidden_classes) &&
-                               (ann_count > 0);
+                       r.currently_visible = ((always_show_all_rows_ || r.has_hidden_classes) &&
+                               (ann_count > 0)) || r.expanded;
                }
 
                if (r.currently_visible) {