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:
Carl Hetherington 2012-06-15 15:01:35 +00:00
parent e258a15330
commit a8dd4ec805
5 changed files with 24 additions and 4 deletions

View file

@ -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