diff options
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; |