Save/restore PortInsert state fully (fixes #3901).
git-svn-id: svn://localhost/ardour2/branches/3.0@9244 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
a8b4169cce
commit
53d0aeea2b
@ -161,7 +161,7 @@ PortInsert::get_state(void)
|
|||||||
XMLNode&
|
XMLNode&
|
||||||
PortInsert::state (bool full)
|
PortInsert::state (bool full)
|
||||||
{
|
{
|
||||||
XMLNode& node = Processor::state(full);
|
XMLNode& node = IOProcessor::state(full);
|
||||||
char buf[32];
|
char buf[32];
|
||||||
node.add_property ("type", "port");
|
node.add_property ("type", "port");
|
||||||
snprintf (buf, sizeof (buf), "%" PRIu32, bitslot);
|
snprintf (buf, sizeof (buf), "%" PRIu32, bitslot);
|
||||||
@ -192,7 +192,7 @@ PortInsert::set_state (const XMLNode& node, int version)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Processor::set_state (*insert_node, version);
|
IOProcessor::set_state (*insert_node, version);
|
||||||
|
|
||||||
if ((prop = node.property ("type")) == 0) {
|
if ((prop = node.property ("type")) == 0) {
|
||||||
error << _("XML node describing port insert is missing the `type' field") << endmsg;
|
error << _("XML node describing port insert is missing the `type' field") << endmsg;
|
||||||
|
Loading…
Reference in New Issue
Block a user