From: Tilman Sauerbeck Date: Sat, 28 Nov 2015 11:53:56 +0000 (+0100) Subject: LogicSignal: Only draw the trigger marker for enabled channels. X-Git-Tag: pulseview-0.3.0~37 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=30bb6ca0a51a601c3bee8f53ccbbc7479aebf2d5 LogicSignal: Only draw the trigger marker for enabled channels. This makes the behaviour consistent across LogicSignal's three painting functions (paint_back(), paint_mid() and paint_fore()). --- diff --git a/pv/view/logicsignal.cpp b/pv/view/logicsignal.cpp index c23f0922..63d15314 100644 --- a/pv/view/logicsignal.cpp +++ b/pv/view/logicsignal.cpp @@ -249,7 +249,7 @@ void LogicSignal::paint_mid(QPainter &p, const ViewItemPaintParams &pp) void LogicSignal::paint_fore(QPainter &p, const ViewItemPaintParams &pp) { // Draw the trigger marker - if (!trigger_match_) + if (!trigger_match_ || !channel_->enabled()) return; const int y = get_visual_y();