diff options
author | David Robillard <d@drobilla.net> | 2009-02-16 23:32:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-02-16 23:32:59 +0000 |
commit | 3e1eb6bcbd1bf5b9f3bfb64d8b9a5ad68c01368c (patch) | |
tree | 692ec9539da314cd42a2692231deaaeb36aa1720 /gtk2_ardour/automation_line.cc | |
parent | 87c7b621035d0f3e9bbf613b54709470d6ee7ca5 (diff) |
Fix crash on audio record (time converter segfault wackiness).
git-svn-id: svn://localhost/ardour2/branches/3.0@4607 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r-- | gtk2_ardour/automation_line.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index b621773682..ad32290a6b 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -56,14 +56,16 @@ using namespace PBD; using namespace Editing; using namespace Gnome; // for Canvas +static const Evoral::IdentityConverter<double, nframes_t> default_converter; + AutomationLine::AutomationLine (const string& name, TimeAxisView& tv, ArdourCanvas::Group& parent, boost::shared_ptr<AutomationList> al, - const Evoral::TimeConverter<double, nframes_t>& converter) + const Evoral::TimeConverter<double, nframes_t>* converter) : trackview (tv) , _name (name) , alist (al) , _parent_group (parent) - , _time_converter (converter) + , _time_converter (converter ? (*converter) : default_converter) { _interpolation = al->interpolation(); points_visible = false; |