Fix thinko in 6ae047cdd and 8f488515 (prefer LV2 symbol over ID)
authorRobin Gareus <robin@gareus.org>
Fri, 21 Apr 2017 03:36:52 +0000 (05:36 +0200)
committerRobin Gareus <robin@gareus.org>
Fri, 21 Apr 2017 03:36:52 +0000 (05:36 +0200)
libs/ardour/plugin_insert.cc

index 1276f231e96b59e1539ff8a8f5f123b9d0e1fd69..cad48904949c2c233317aa2af1218f7520dcb706 100644 (file)
@@ -2404,7 +2404,11 @@ 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);
+                       }
+
+                       if (p != (uint32_t)-1) {
 
                                /* this may create the new controllable */