diff options
author | Carl Hetherington <carl@carlh.net> | 2011-05-11 11:55:36 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-05-11 11:55:36 +0000 |
commit | 29ee63707f971684d4ee58373d8185edfe419578 (patch) | |
tree | d99fef5223880a8256e18caa0af4f44462a6b5ab /gtk2_ardour/editor_mouse.cc | |
parent | f2a84a944d4380941524150228d77510b44baa43 (diff) |
Fix crash when clicking on a hit (may be #4036).
git-svn-id: svn://localhost/ardour2/branches/3.0@9491 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_mouse.cc')
-rw-r--r-- | gtk2_ardour/editor_mouse.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index da1e18b312..92a2b6ee5f 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -712,7 +712,7 @@ Editor::button_press_handler_1 (ArdourCanvas::Item* item, GdkEvent* event, ItemT if (internal_editing()) { /* trim notes if we're in internal edit mode and near the ends of the note */ ArdourCanvas::CanvasNote* cn = dynamic_cast<ArdourCanvas::CanvasNote*> (item); - if (cn->big_enough_to_trim() && cn->mouse_near_ends()) { + if (cn && cn->big_enough_to_trim() && cn->mouse_near_ends()) { _drags->set (new NoteResizeDrag (this, item), event, current_canvas_cursor); } else { _drags->set (new NoteDrag (this, item), event); |