mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Fix incorrect display of automation lines after points are
removed. git-svn-id: svn://localhost/ardour2/branches/3.0@12645 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0f039ad5a9
commit
92bf2dc1c2
1 changed files with 5 additions and 1 deletions
|
|
@ -136,7 +136,11 @@ void
|
|||
AutomationLine::show ()
|
||||
{
|
||||
if (_visible & Line) {
|
||||
if (alist->interpolation() != AutomationList::Discrete) {
|
||||
/* Only show the line there are some points, otherwise we may show an out-of-date line
|
||||
when automation points have been removed (the line will still follow the shape of the
|
||||
old points).
|
||||
*/
|
||||
if (alist->interpolation() != AutomationList::Discrete && control_points.size() >= 2) {
|
||||
line->show();
|
||||
} else {
|
||||
line->hide ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue