From: Soeren Apel Date: Fri, 31 Jan 2020 18:26:22 +0000 (+0100) Subject: DecodeTrace: Always show row if its class selector is showing X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e211a94560940c3842fe68a3877124823384d298;p=pulseview.git DecodeTrace: Always show row if its class selector is showing --- diff --git a/pv/views/trace/decodetrace.cpp b/pv/views/trace/decodetrace.cpp index 3afb45ac..5cc03fa4 100644 --- a/pv/views/trace/decodetrace.cpp +++ b/pv/views/trace/decodetrace.cpp @@ -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) {