mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 23:46:20 +01:00
continue work from 68f4ac3282356 on correct checks for editing context actions
This commit is contained in:
parent
67f8906e40
commit
c6b3694441
1 changed files with 8 additions and 8 deletions
|
|
@ -1154,11 +1154,11 @@ EditingContext::set_draw_velocity (int v)
|
|||
{
|
||||
EC_LOCAL_TEMPO_SCOPE;
|
||||
|
||||
if (v == DRAW_VEL_AUTO) {
|
||||
draw_velocity_actions[v]->set_active (true);
|
||||
} else {
|
||||
draw_velocity_actions[std::max (std::min (v, 127), 0)]->set_active (true);
|
||||
if (draw_velocity_actions.find (v) == draw_velocity_actions.end() || draw_velocity_actions[v]) {
|
||||
return;
|
||||
}
|
||||
|
||||
draw_velocity_actions[v]->set_active (true);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -1166,11 +1166,11 @@ EditingContext::set_draw_channel (int c)
|
|||
{
|
||||
EC_LOCAL_TEMPO_SCOPE;
|
||||
|
||||
if (c == DRAW_CHAN_AUTO) {
|
||||
draw_channel_actions[c]->set_active (true);
|
||||
} else {
|
||||
draw_channel_actions[std::max (std::min (c, 15), 0)]->set_active (true);
|
||||
if (draw_channel_actions.find (c) == draw_channel_actions.end() || draw_channel_actions[c]) {
|
||||
return;
|
||||
}
|
||||
|
||||
draw_channel_actions[c]->set_active (true);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue