13
0

Fix clearing automation

Due to refactoring in d41e66f169 and 83ad0a10b5
Automation > Clear re-displayed the line on mouse-over, even
if there are no events. Then trying to interact with he line
caused segfaults because the actual control points no longer exist.
This commit is contained in:
Robin Gareus 2022-11-01 00:51:40 +01:00
parent 910b637326
commit e819af1948
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -990,6 +990,7 @@ AutomationLine::reset_callback (const Evoral::ControlList& events)
}
control_points.clear ();
line->hide();
line_points.clear ();
return;
}