Hi,
the attached patch fixes the PulseView compilation if ENABLE_DECODER is
set to OFF.
Bye,
imp
From 7619ffb15d87a3147012ec448242a85b36bb0d71 Mon Sep 17 00:00:00 2001
From: Martin Errenst <i...@hannover.ccc.de>
Date: Sun, 4 Feb 2018 00:57:07 +0100
Subject: [PATCH] fix PulseView compilation with ENABLE_DECODE set to OFF

---
 pv/views/trace/view.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pv/views/trace/view.cpp b/pv/views/trace/view.cpp
index 156b3ee..2d70fc3 100644
--- a/pv/views/trace/view.cpp
+++ b/pv/views/trace/view.cpp
@@ -504,8 +504,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
 
 	viewport_->update();
 
-- 
2.13.6

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to