]> sigrok.org Git - pulseview.git/commitdiff
fix PulseView compilation with ENABLE_DECODE set to OFF
authorMartin Errenst <redacted>
Sat, 3 Feb 2018 23:57:07 +0000 (00:57 +0100)
committerUwe Hermann <redacted>
Sat, 10 Feb 2018 20:09:00 +0000 (21:09 +0100)
pv/views/trace/view.cpp

index 6a9c01af731180378de18a45c9c3e2affe34286d..af15f1e49105f522e4eae124c9182623553c538b 100644 (file)
@@ -562,8 +562,10 @@ void View::set_current_segment(uint32_t segment_id)
 
        for (shared_ptr<Signal> signal : signals_)
                signal->set_current_segment(current_segment_);
+#ifdef ENABLE_DECODE
        for (shared_ptr<DecodeTrace> dt : decode_traces_)
                dt->set_current_segment(current_segment_);
+#endif
 
        vector<util::Timestamp> triggers = session_.get_triggers(current_segment_);