summaryrefslogtreecommitdiff
path: root/src/instrumentparser.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-06-07 23:48:25 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-06-07 23:52:06 +0200
commitb6737efa307bb6dca6663bf8970dd0d444aa0af3 (patch)
tree50d4f78b8902a29a1129927a5d02ddde97a2cf87 /src/instrumentparser.cc
parent7c50c15ede76869489a94503fa22028180f41cff (diff)
Store bleed control support in settings.
Diffstat (limited to 'src/instrumentparser.cc')
-rw-r--r--src/instrumentparser.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/instrumentparser.cc b/src/instrumentparser.cc
index f49a6af..9a5e36d 100644
--- a/src/instrumentparser.cc
+++ b/src/instrumentparser.cc
@@ -31,13 +31,15 @@
#include <hugin.hpp>
+#include "settings.h"
#include "cpp11fix.h"
#include "path.h"
#include "nolocale.h"
-InstrumentParser::InstrumentParser(Instrument& instrument)
+InstrumentParser::InstrumentParser(Instrument& instrument, Settings& settings)
: instrument(instrument)
+ , settings(settings)
{
}
@@ -100,6 +102,10 @@ void InstrumentParser::startTag(const std::string& name, const attr_t& attr)
{
channel->main = (attr.at("main") == "true") ?
main_state_t::is_main : main_state_t::is_not_main;
+ if(channel->main == main_state_t::is_main)
+ {
+ settings.has_bleed_control.store(true);
+ }
}
}