mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
Re-show all xfades that we hide during drags (#4933).
git-svn-id: svn://localhost/ardour2/branches/3.0@12729 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
e258a15330
commit
a8dd4ec805
5 changed files with 24 additions and 4 deletions
|
|
@ -530,9 +530,14 @@ AudioStreamView::hide_all_fades ()
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
/** Hide xfades for regions that overlap ar.
|
||||
* @return AudioRegionViews that xfades were hidden for.
|
||||
*/
|
||||
list<AudioRegionView*>
|
||||
AudioStreamView::hide_xfades_with (boost::shared_ptr<AudioRegion> ar)
|
||||
{
|
||||
list<AudioRegionView*> hidden;
|
||||
|
||||
for (list<RegionView*>::iterator i = region_views.begin(); i != region_views.end(); ++i) {
|
||||
AudioRegionView* const arv = dynamic_cast<AudioRegionView*>(*i);
|
||||
if (arv) {
|
||||
|
|
@ -541,10 +546,13 @@ AudioStreamView::hide_xfades_with (boost::shared_ptr<AudioRegion> ar)
|
|||
break;
|
||||
default:
|
||||
arv->hide_xfades ();
|
||||
hidden.push_back (arv);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return hidden;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue