1 From dcfe0a01f72021aab961245d0ebcc9f8d4504b40 Mon Sep 17 00:00:00 2001
2 From: Soeren Apel <soeren@apelpie.net>
3 Date: Sun, 31 Jan 2016 14:12:44 +0100
4 Subject: [PATCH] View: Honor ENABLE_DECODE compiler switch
6 Signed-off-by: Soeren Apel <soeren@apelpie.net>
7 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
9 Patch downloaded from upstream git:
10 http://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff;h=dcfe0a01f72021aab961245d0ebcc9f8d4504b40
11 as suggested by upstream:
12 http://article.gmane.org/gmane.comp.debugging.sigrok.devel/1954
14 pv/view/view.cpp | 7 ++++++-
15 1 file changed, 6 insertions(+), 1 deletion(-)
17 diff --git a/pv/view/view.cpp b/pv/view/view.cpp
18 index c9b08bf..6ad7dea 100644
19 --- a/pv/view/view.cpp
20 +++ b/pv/view/view.cpp
22 #include <libsigrokcxx/libsigrokcxx.hpp>
24 #include "analogsignal.hpp"
25 -#include "decodetrace.hpp"
27 #include "logicsignal.hpp"
30 #include "pv/data/logicsegment.hpp"
31 #include "pv/util.hpp"
34 +#include "decodetrace.hpp"
37 using boost::shared_lock;
38 using boost::shared_mutex;
40 @@ -455,9 +458,11 @@ void View::enable_coloured_bg(bool state)
42 l->set_coloured_bg(state);
45 shared_ptr<DecodeTrace> d = dynamic_pointer_cast<DecodeTrace>(i);
47 d->set_coloured_bg(state);