X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Flxvst_plugin.cc;h=91ae75788340989ac4ea1ca4c15205fc38abcb4b;hb=ec31741ee6d72fe48bdf35eaaf5c0a9c59f328d0;hp=3939048ad443e7ceca3ccaebb7227b7db66c6e3b;hpb=e0766e8f74e740cd24645f3712873a1b669e4995;p=ardour.git diff --git a/libs/ardour/lxvst_plugin.cc b/libs/ardour/lxvst_plugin.cc index 3939048ad4..91ae757883 100644 --- a/libs/ardour/lxvst_plugin.cc +++ b/libs/ardour/lxvst_plugin.cc @@ -58,7 +58,11 @@ LXVSTPlugin::LXVSTPlugin (const LXVSTPlugin &other) _plugin = _state->plugin; - // Plugin::setup_controls (); + XMLNode* root = new XMLNode (other.state_node_name ()); + LocaleGuard lg; + other.add_state (root); + set_state (*root, Stateful::loading_state_version); + delete root; } LXVSTPlugin::~LXVSTPlugin ()