From 073cf1782c600a1e8b4713a3023a7185c576a9c7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 22 Mar 2011 19:01:34 +0000 Subject: [PATCH] Fix crash on getting state of selected MIDI region automation tracks (fixes #3860). git-svn-id: svn://localhost/ardour2/branches/3.0@9187 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/selection.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/selection.cc b/gtk2_ardour/selection.cc index fa0df40336..d0b2cab5c7 100644 --- a/gtk2_ardour/selection.cc +++ b/gtk2_ardour/selection.cc @@ -1109,7 +1109,7 @@ Selection::get_state () const } else if (atv) { XMLNode* t = node->add_child (X_("AutomationView")); t->add_property (X_("id"), atoi (atv->parent_route()->id().to_s().c_str())); - t->add_property (X_("parameter"), EventTypeMap::instance().to_symbol (atv->control()->parameter ())); + t->add_property (X_("parameter"), EventTypeMap::instance().to_symbol (atv->parameter ())); } }