From 9c7139e505a141c6574bd7e84aede83571acc59f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 9 Oct 2015 11:09:47 -0400 Subject: set up control_by_parameter map in a Mackie::Strip so that subsequent array-syntax lookup does not crash --- libs/surfaces/mackie/strip.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libs') diff --git a/libs/surfaces/mackie/strip.cc b/libs/surfaces/mackie/strip.cc index 47e14bf73a..33c63e04a3 100644 --- a/libs/surfaces/mackie/strip.cc +++ b/libs/surfaces/mackie/strip.cc @@ -175,6 +175,15 @@ Strip::set_route (boost::shared_ptr r, bool /*with_messages*/) _route = r; control_by_parameter.clear (); + + control_by_parameter[PanAzimuthAutomation] = (Control*) 0; + control_by_parameter[PanWidthAutomation] = (Control*) 0; + control_by_parameter[PanElevationAutomation] = (Control*) 0; + control_by_parameter[PanFrontBackAutomation] = (Control*) 0; + control_by_parameter[PanLFEAutomation] = (Control*) 0; + control_by_parameter[GainAutomation] = (Control*) 0; + control_by_parameter[TrimAutomation] = (Control*) 0; + reset_saved_values (); if (!r) { -- cgit v1.2.3