fix crash when copy-n-pasting plugins, caused by work done to allow copy-n-paste of aux sends: non-send processors do not have a "role" node in their XML state
git-svn-id: svn://localhost/ardour2/branches/3.0@13879 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
17cbb458e7
commit
347c4f9779
@ -1820,7 +1820,6 @@ ProcessorBox::paste_processor_state (const XMLNodeList& nlist, boost::shared_ptr
|
|||||||
XMLProperty const * type = (*niter)->property ("type");
|
XMLProperty const * type = (*niter)->property ("type");
|
||||||
XMLProperty const * role = (*niter)->property ("role");
|
XMLProperty const * role = (*niter)->property ("role");
|
||||||
assert (type);
|
assert (type);
|
||||||
assert (role);
|
|
||||||
|
|
||||||
boost::shared_ptr<Processor> p;
|
boost::shared_ptr<Processor> p;
|
||||||
try {
|
try {
|
||||||
@ -1836,6 +1835,8 @@ ProcessorBox::paste_processor_state (const XMLNodeList& nlist, boost::shared_ptr
|
|||||||
/* aux sends are OK, but those used for
|
/* aux sends are OK, but those used for
|
||||||
* other purposes, are not.
|
* other purposes, are not.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
assert (role);
|
||||||
|
|
||||||
if (role->value() != "Aux") {
|
if (role->value() != "Aux") {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user