From fc77ae0738565770abde1a25f650a035cf082af0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 19 Jan 2013 07:00:43 +0000 Subject: Replace a bunch of potential crashes with graceful handling of the situation. We really need some kind of more sophisticated assert macro that can be switched to non-fatal logging mode for release builds. A log message, which is often all that would happen, is a lot better than a trainwrecked performance... git-svn-id: svn://localhost/ardour2/branches/3.0@13892 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/automation_streamview.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour/automation_streamview.cc') diff --git a/gtk2_ardour/automation_streamview.cc b/gtk2_ardour/automation_streamview.cc index 65df722e3c..7b2c1ab751 100644 --- a/gtk2_ardour/automation_streamview.cc +++ b/gtk2_ardour/automation_streamview.cc @@ -249,9 +249,9 @@ AutomationStreamView::interpolation () const } AutomationRegionView* v = dynamic_cast (region_views.front()); - assert (v); - - return v->line()->the_list()->interpolation (); + if (v) { + return v->line()->the_list()->interpolation (); + } } /** Clear all automation displayed in this view */ -- cgit v1.2.3