Fix crash on getting state of selected MIDI region automation tracks (fixes #3860).
authorCarl Hetherington <carl@carlh.net>
Tue, 22 Mar 2011 19:01:34 +0000 (19:01 +0000)
committerCarl Hetherington <carl@carlh.net>
Tue, 22 Mar 2011 19:01:34 +0000 (19:01 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@9187 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/selection.cc

index fa0df40336de07f16e800c6a041008bf8f371ed1..d0b2cab5c7749a67ff763e3574886bf56c54aff8 100644 (file)
@@ -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 ()));
                }
        }