diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-12-29 14:48:42 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-12-29 14:48:42 +0000 |
commit | 09b0ae782cd0347ffbe28be432658fb41aadaa3d (patch) | |
tree | 35553429b93cb98c2c2a6808c3b7964e8c1ce68a /gtk2_ardour | |
parent | 724771f18a164fe1802ff25eb1887193847e7861 (diff) |
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
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 5482b265cf..f37d6e2556 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -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); } |