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:
parent
724771f18a
commit
09b0ae782c
@ -818,6 +818,10 @@ void
|
|||||||
RegionMotionDrag::finished (GdkEvent *, bool)
|
RegionMotionDrag::finished (GdkEvent *, bool)
|
||||||
{
|
{
|
||||||
for (vector<TimeAxisView*>::iterator i = _time_axis_views.begin(); i != _time_axis_views.end(); ++i) {
|
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) {
|
if ((*i)->view()->layer_display() == Expanded) {
|
||||||
(*i)->view()->set_layer_display (Stacked);
|
(*i)->view()->set_layer_display (Stacked);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user