Fix restoration of Plugin Controllable state ID's
authorTim Mayberry <mojofunk@gmail.com>
Fri, 21 Apr 2017 01:40:03 +0000 (11:40 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Fri, 21 Apr 2017 02:46:04 +0000 (12:46 +1000)
Caused by thinko when merging/replacing two conditional clauses in the
string-convert changes which resulted in bindings not being restored and
regeneration of id's in XML.

libs/ardour/plugin_insert.cc

index 39371423f92f2f707cebc5e7d71c80216cae5423..1276f231e96b59e1539ff8a8f5f123b9d0e1fd69 100644 (file)
@@ -2404,7 +2404,7 @@ PluginInsert::set_control_ids (const XMLNode& node, int version)
                                }
                        }
 #endif
-                       if (p == (uint32_t)-1 && (*iter)->get_property (X_("parameter"), p)) {
+                       if (p != (uint32_t)-1 && (*iter)->get_property (X_("parameter"), p)) {
 
                                /* this may create the new controllable */