fix crash when copy-n-pasting plugins, caused by work done to allow copy-n-paste...
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 18 Jan 2013 17:35:34 +0000 (17:35 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 18 Jan 2013 17:35:34 +0000 (17:35 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@13879 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/processor_box.cc

index b9e8102214ecfa9fd31c70cde3c6026ce741cdd3..662550a5bd2d488b8a05a82d17c653adc1e44226 100644 (file)
@@ -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;