diff options
author | Jesse Chappell <jesse@essej.net> | 2007-01-18 06:39:22 +0000 |
---|---|---|
committer | Jesse Chappell <jesse@essej.net> | 2007-01-18 06:39:22 +0000 |
commit | 851d1fa76a4b9a67b5890ea36380029eaa1fb45f (patch) | |
tree | 8b56815d56cbc1f030d2b0e65303e86e075c7a0e /libs/ardour/io.cc | |
parent | f7d48b79f1fa28ce1e8f8862ad0d599d497c1ec6 (diff) |
Fixed midi controllable state saving/loading
git-svn-id: svn://localhost/ardour2/trunk@1356 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/io.cc')
-rw-r--r-- | libs/ardour/io.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index b4d9db97eb..5e99a14fad 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -1634,8 +1634,10 @@ IO::set_state (const XMLNode& node) set_automation_state (*(*iter)->children().front()); } - if ((*iter)->name() == X_("gaincontrol")) { - _gain_control.set_state (**iter); + if ((*iter)->name() == X_("controllable")) { + if ((prop = (*iter)->property("name")) != 0 && prop->value() == "gaincontrol") { + _gain_control.set_state (**iter); + } } } |