summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-01-18 17:35:34 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2013-01-18 17:35:34 +0000
commit347c4f97798c4f12d6b0a6a6fc3c5c362e3d8252 (patch)
treeb0068a86ba5e40189b067ee2a0deff0c1d899dee
parent17cbb458e71abe64cede22e3573816742c2d235f (diff)
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
-rw-r--r--gtk2_ardour/processor_box.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc
index b9e8102214..662550a5bd 100644
--- a/gtk2_ardour/processor_box.cc
+++ b/gtk2_ardour/processor_box.cc
@@ -1820,7 +1820,6 @@ ProcessorBox::paste_processor_state (const XMLNodeList& nlist, boost::shared_ptr
XMLProperty const * type = (*niter)->property ("type");
XMLProperty const * role = (*niter)->property ("role");
assert (type);
- assert (role);
boost::shared_ptr<Processor> p;
try {
@@ -1836,6 +1835,8 @@ ProcessorBox::paste_processor_state (const XMLNodeList& nlist, boost::shared_ptr
/* aux sends are OK, but those used for
* other purposes, are not.
*/
+
+ assert (role);
if (role->value() != "Aux") {
continue;