From: Martin Errenst Date: Sat, 3 Feb 2018 23:57:07 +0000 (+0100) Subject: fix PulseView compilation with ENABLE_DECODE set to OFF X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=57c04e781e96020c7185d7b6e634629007497227;p=pulseview.git fix PulseView compilation with ENABLE_DECODE set to OFF --- diff --git a/pv/views/trace/view.cpp b/pv/views/trace/view.cpp index 6a9c01af..af15f1e4 100644 --- a/pv/views/trace/view.cpp +++ b/pv/views/trace/view.cpp @@ -562,8 +562,10 @@ void View::set_current_segment(uint32_t segment_id) for (shared_ptr signal : signals_) signal->set_current_segment(current_segment_); +#ifdef ENABLE_DECODE for (shared_ptr dt : decode_traces_) dt->set_current_segment(current_segment_); +#endif vector triggers = session_.get_triggers(current_segment_);