Use XMLNode::set_property in ARDOUR::Amp class
authorTim Mayberry <mojofunk@gmail.com>
Sat, 27 Aug 2016 06:08:48 +0000 (16:08 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Tue, 18 Apr 2017 23:36:50 +0000 (09:36 +1000)
libs/ardour/amp.cc

index e2788060bcef7eef2a2b050610d35d6fb37341c8..98257ddd7af3aa881ce53255338821ea962cfb3b 100644 (file)
@@ -359,7 +359,7 @@ XMLNode&
 Amp::state (bool full_state)
 {
        XMLNode& node (Processor::state (full_state));
-       node.add_property("type", _gain_control->parameter().type() == GainAutomation ? "amp" : "trim");
+       node.set_property("type", _gain_control->parameter().type() == GainAutomation ? "amp" : "trim");
        node.add_child_nocopy (_gain_control->get_state());
 
        return node;