From 31d0eca3077938372d5dad027b1e6270b0ee6e4c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 10 Jul 2011 23:55:48 +0000 Subject: 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 --- libs/ardour/internal_send.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/ardour/internal_send.cc') 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(); -- cgit v1.2.3