summaryrefslogtreecommitdiff
path: root/libs/ardour/panner.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-10-27 02:45:45 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-10-27 02:45:45 +0000
commit1bd4c5b3a212460eed1773f6b049d18c89625565 (patch)
treeda181d9467ff9de737b170576b194852f83e8f1e /libs/ardour/panner.cc
parente9b7cc1a429f8d2bc17439a0c9c6412936130c33 (diff)
new automation state model, sort of working, but not really
git-svn-id: svn://localhost/ardour2/trunk@1031 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/panner.cc')
-rw-r--r--libs/ardour/panner.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/libs/ardour/panner.cc b/libs/ardour/panner.cc
index 6d9faa92b7..faf2e03e2f 100644
--- a/libs/ardour/panner.cc
+++ b/libs/ardour/panner.cc
@@ -511,7 +511,7 @@ EqualPowerStereoPanner::set_state (const XMLNode& node)
if ((*iter)->name() == X_("panner")) {
_control.set_state (**iter);
} else if ((*iter)->name() == X_("Automation")) {
- _automation.set_state (**iter);
+ _automation.set_state (*((*iter)->children().front()));
}
}
@@ -1028,10 +1028,6 @@ Panner::state (bool full)
XMLNode* root = new XMLNode (X_("Panner"));
char buf[32];
- for (iterator p = begin(); p != end(); ++p) {
- root->add_child_nocopy ((*p)->state (full));
- }
-
root->add_property (X_("linked"), (_linked ? "yes" : "no"));
snprintf (buf, sizeof (buf), "%d", _link_direction);
root->add_property (X_("link_direction"), buf);