diff options
author | Carl Hetherington <carl@carlh.net> | 2011-07-10 23:55:48 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-07-10 23:55:48 +0000 |
commit | 31d0eca3077938372d5dad027b1e6270b0ee6e4c (patch) | |
tree | c2fbbdf97851f9a3501b0e33171a430c4f7c7027 /libs/ardour/internal_send.cc | |
parent | a7057d69650841386a4003a6616e30b6304f8dcb (diff) |
Set up initial gains with init_gain() before (rather than after) potentially restoring gain with Send::set_state (should fix #3546).
git-svn-id: svn://localhost/ardour2/branches/3.0@9834 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/internal_send.cc')
-rw-r--r-- | libs/ardour/internal_send.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/internal_send.cc b/libs/ardour/internal_send.cc index d0497aa007..36d484e7b0 100644 --- a/libs/ardour/internal_send.cc +++ b/libs/ardour/internal_send.cc @@ -223,10 +223,10 @@ InternalSend::set_state (const XMLNode& node, int version) { const XMLProperty* prop; - Send::set_state (node, version); - init_gain (); + Send::set_state (node, version); + if ((prop = node.property ("target")) != 0) { _send_to_id = prop->value(); |