13
0

set up control_by_parameter map in a Mackie::Strip so that subsequent array-syntax lookup does not crash

This commit is contained in:
Paul Davis 2015-10-09 11:09:47 -04:00
parent f74eab854a
commit 9c7139e505

View File

@ -175,6 +175,15 @@ Strip::set_route (boost::shared_ptr<Route> r, bool /*with_messages*/)
_route = r; _route = r;
control_by_parameter.clear (); 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 (); reset_saved_values ();
if (!r) { if (!r) {