summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_line.cc
diff options
context:
space:
mode:
authorHans Fugal <hans@fugal.net>2006-08-10 01:45:49 +0000
committerHans Fugal <hans@fugal.net>2006-08-10 01:45:49 +0000
commit74b19eadfab8e57df2cb4270382efb453709dadd (patch)
tree441cf4a217541c200962e55f584113c4e6681efc /gtk2_ardour/automation_line.cc
parentcd3f8dba11065da6933b8f361623612fa6be4145 (diff)
Can pass a core to ardbg now. Fixed sometimes crash on saving history by
creating a memory leak(?) that will go away with the transition of XMLNode* to shared_ptr<>. A few bits toward restoring history from XML. git-svn-id: svn://localhost/ardour2/branches/undo@779 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r--gtk2_ardour/automation_line.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc
index 5c09ddd49b..f3e30c4523 100644
--- a/gtk2_ardour/automation_line.cc
+++ b/gtk2_ardour/automation_line.cc
@@ -1270,13 +1270,14 @@ AutomationLine::hide_all_but_selected_control_points ()
XMLNode &AutomationLine::get_state(void)
{
- // TODO
- return alist.get_state();
+ XMLNode *node = new XMLNode("AutomationLine");
+ node->add_child_nocopy(alist.get_state());
+ return *node;
}
int AutomationLine::set_state(const XMLNode &node)
{
// TODO
- alist.set_state(node);
+ //alist.set_state(node);
return 0;
}