13
0

avoid crash on region drag end trying to access TimeAxisView::view() for TAV's that don't have one

git-svn-id: svn://localhost/ardour2/branches/3.0@11105 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-12-29 14:48:42 +00:00
parent 724771f18a
commit 09b0ae782c

View File

@ -818,6 +818,10 @@ void
RegionMotionDrag::finished (GdkEvent *, bool)
{
for (vector<TimeAxisView*>::iterator i = _time_axis_views.begin(); i != _time_axis_views.end(); ++i) {
if (!(*i)->view()) {
continue;
}
if ((*i)->view()->layer_display() == Expanded) {
(*i)->view()->set_layer_display (Stacked);
}