summaryrefslogtreecommitdiff
path: root/gtk2_ardour/selection.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-08-24 22:07:53 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-08-24 22:07:53 +0000
commitbe85889464470e66e33f6f09f3cf1a64ef3c5063 (patch)
tree937d3c0975cbbfe1f721d2451e66984f8d460493 /gtk2_ardour/selection.cc
parentda392b880dfe5e5dd450f2ecb2ef4d7afaf52932 (diff)
fix load+save of plugin parameter automation
git-svn-id: svn://localhost/ardour2/branches/3.0@7678 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/selection.cc')
-rw-r--r--gtk2_ardour/selection.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/gtk2_ardour/selection.cc b/gtk2_ardour/selection.cc
index 5b1bba1f3c..3e9cd41698 100644
--- a/gtk2_ardour/selection.cc
+++ b/gtk2_ardour/selection.cc
@@ -1140,9 +1140,15 @@ Selection::set_state (XMLNode const & node, int)
assert (rtv);
boost::shared_ptr<AutomationTimeAxisView> atv = rtv->automation_child (EventTypeMap::instance().new_parameter (prop_parameter->value ()));
- assert (atv);
-
- add (atv.get());
+
+ /* the automation could be for an entity that was never saved
+ in the session file. Don't freak out if we can't find
+ it.
+ */
+
+ if (atv) {
+ add (atv.get());
+ }
}
}