From 7d5671a4117d8d95ecad5073430e591b7c5e02bf Mon Sep 17 00:00:00 2001 From: Len Ovens Date: Wed, 3 Feb 2016 10:35:35 -0800 Subject: mackie control: Fix crash when selecting Track on MIDI strip, don't create phase control if there is none. --- libs/ardour/route.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libs/ardour/route.cc') diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 79fbeb546e..001281f8f4 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -4209,6 +4209,16 @@ Route::trim_control() const return _trim_control; } +boost::shared_ptr +Route::phase_control() const +{ + if (phase_invert().size()) { + return _phase_control; + } else { + return boost::shared_ptr(); + } +} + boost::shared_ptr Route::get_control (const Evoral::Parameter& param) { -- cgit v1.2.3