]> sigrok.org Git - pulseview.git/commitdiff
LogicSignal: Only draw the trigger marker for enabled channels.
authorTilman Sauerbeck <redacted>
Sat, 28 Nov 2015 11:53:56 +0000 (12:53 +0100)
committerTilman Sauerbeck <redacted>
Sat, 28 Nov 2015 11:56:32 +0000 (12:56 +0100)
This makes the behaviour consistent across LogicSignal's three
painting functions (paint_back(), paint_mid() and paint_fore()).

pv/view/logicsignal.cpp

index c23f09226cd9bfaa2cbaf3d362eca7065ad69088..63d15314cdcf23470261f72a82dafedde51619e3 100644 (file)
@@ -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();