Fix #2559; crash when doing end_grab on an already-deleted canvas item.

git-svn-id: svn://localhost/ardour2/branches/3.0@4709 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-02-28 01:52:45 +00:00
parent 737ce09ef0
commit edee84d014
3 changed files with 9 additions and 3 deletions

View file

@ -911,6 +911,10 @@ Editor::catch_vanishing_regionview (RegionView *rv)
audioregionview by itself.
*/
if (rv->get_canvas_group() == drag_info.item) {
end_grab (drag_info.item, 0);
}
if (clicked_regionview == rv) {
clicked_regionview = 0;
}