AutomationLine: make sure control points aren't empty
- Otherwise this trigger a C++ assert when built with it - More reference https://github.com/flathub/org.ardour.Ardour/issues/34
This commit is contained in:
parent
c82745301c
commit
9e754959f6
@ -1035,7 +1035,7 @@ AutomationLine::reset_callback (const Evoral::ControlList& events)
|
||||
delete cp;
|
||||
}
|
||||
|
||||
if (!terminal_points_can_slide) {
|
||||
if (!terminal_points_can_slide && !control_points.empty()) {
|
||||
control_points.back()->set_can_slide(false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user