X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Flogicsignal.cpp;h=79065ebd4740fbb7ffc215abcded4f18d53d15b9;hp=870af9c5fce2caa04dc718afd66209ae7b1c23e9;hb=2795de2e7fdaeb6e9f672e0dc73dea328f35e585;hpb=6b197c700a2065941671c5ef557dc80ba3c978ac diff --git a/pv/views/trace/logicsignal.cpp b/pv/views/trace/logicsignal.cpp index 870af9c..79065eb 100644 --- a/pv/views/trace/logicsignal.cpp +++ b/pv/views/trace/logicsignal.cpp @@ -103,6 +103,7 @@ LogicSignal::LogicSignal( shared_ptr base) : Signal(session, base), device_(device), + trigger_types_(get_trigger_types()), trigger_none_(nullptr), trigger_rising_(nullptr), trigger_high_(nullptr), @@ -295,9 +296,8 @@ void LogicSignal::paint_fore(QPainter &p, ViewItemPaintParams &pp) // Draw the trigger marker if (base_->enabled() && trigger_match_) { const int y = get_visual_y(); - const vector trig_types = get_trigger_types(); - for (int32_t type_id : trig_types) { + for (int32_t type_id : trigger_types_) { const TriggerMatchType *const type = TriggerMatchType::get(type_id); if (trigger_match_ != type || type_id < 0 ||