Patch from Lincoln to fix placement of plugins in 2.X sessions. Fixes #3444.
git-svn-id: svn://localhost/ardour2/branches/3.0@7762 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -931,6 +931,7 @@ Route::add_processor_from_xml_2X (const XMLNode& node, int version)
|
||||
|
||||
XMLNodeList const & children = node.children ();
|
||||
XMLNodeList::const_iterator i = children.begin ();
|
||||
|
||||
while (i != children.end() && (*i)->name() != X_("Redirect")) {
|
||||
++i;
|
||||
}
|
||||
@@ -938,7 +939,7 @@ Route::add_processor_from_xml_2X (const XMLNode& node, int version)
|
||||
Placement placement = PreFader;
|
||||
|
||||
if (i != children.end()) {
|
||||
if ((prop = node.property (X_("placement"))) != 0) {
|
||||
if ((prop = (*i)->property (X_("placement"))) != 0) {
|
||||
placement = Placement (string_2_enum (prop->value(), placement));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user