From: Soeren Apel Date: Sun, 31 Jan 2016 13:12:44 +0000 (+0100) Subject: View: Honor ENABLE_DECODE compiler switch X-Git-Tag: pulseview-0.4.0~352 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=dcfe0a01f72021aab961245d0ebcc9f8d4504b40;p=pulseview.git View: Honor ENABLE_DECODE compiler switch --- diff --git a/pv/view/view.cpp b/pv/view/view.cpp index c9b08bf8..6ad7dea0 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -43,7 +43,6 @@ #include #include "analogsignal.hpp" -#include "decodetrace.hpp" #include "header.hpp" #include "logicsignal.hpp" #include "ruler.hpp" @@ -59,6 +58,10 @@ #include "pv/data/logicsegment.hpp" #include "pv/util.hpp" +#ifdef ENABLE_DECODE +#include "decodetrace.hpp" +#endif + using boost::shared_lock; using boost::shared_mutex; @@ -455,9 +458,11 @@ void View::enable_coloured_bg(bool state) if (l) l->set_coloured_bg(state); +#ifdef ENABLE_DECODE shared_ptr d = dynamic_pointer_cast(i); if (d) d->set_coloured_bg(state); +#endif } viewport_->update();