From 14f67ab1874b376cb2bceb8fe7cc27ee3ac50976 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 9 Sep 2010 14:41:09 +0000 Subject: [PATCH] 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 --- libs/ardour/route.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 9369cf887b..9ad36b90fd 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -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)); } }