gain slider: correctly new push/pop group for use selection

This commit is contained in:
Paul Davis 2023-07-26 16:42:12 -06:00
parent f6664570d4
commit 6ba69cfd57

View File

@ -757,8 +757,8 @@ GainMeterBase::amp_start_touch (int state)
{
if (state & Keyboard::UseSelectionModifier) {
_touch_control_group.reset (new GainControlGroup ());
_touch_control_group->fill_from_selection (_control->session().selection());
_touch_control_group->push (_control);
_touch_control_group->set_mode (ControlGroup::Relative);
_touch_control_group->fill_from_selection (_control->session().selection(), _control->parameter());
}
_control->start_touch (timepos_t (_control->session().transport_sample()));