From 0a19ce6f1c8859f02920e14bf0cbef4e526a1f78 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 7 Dec 2010 14:45:24 +0000 Subject: [PATCH] fix crash when dragging percussive-mode notes due to a bad dynamic cast git-svn-id: svn://localhost/ardour2/branches/3.0@8205 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_mouse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index 8ced9a410b..a689553e67 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -756,7 +756,7 @@ Editor::button_press_handler_1 (ArdourCanvas::Item* item, GdkEvent* event, ItemT switch (item_type) { case NoteItem: if (internal_editing()) { - ArdourCanvas::CanvasNote* cn = dynamic_cast (item); + ArdourCanvas::CanvasNoteEvent* cn = dynamic_cast (item); if (cn->mouse_near_ends()) { _drags->set (new NoteResizeDrag (this, item), event, current_canvas_cursor); } else {