From 30bb6ca0a51a601c3bee8f53ccbbc7479aebf2d5 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sat, 28 Nov 2015 12:53:56 +0100 Subject: [PATCH] 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()). --- pv/view/logicsignal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pv/view/logicsignal.cpp b/pv/view/logicsignal.cpp index c23f092..63d1531 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(); -- 2.30.2