mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 00:43:18 +01:00
Fix crash when clicking on an AutomationRegionView in range mode.
git-svn-id: svn://localhost/ardour2/branches/3.0@7764 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
7decc96544
commit
5f27e70016
1 changed files with 5 additions and 2 deletions
|
|
@ -31,6 +31,7 @@
|
|||
#include "midi_automation_line.h"
|
||||
#include "editor_drag.h"
|
||||
#include "editor.h"
|
||||
#include "editing.h"
|
||||
|
||||
#include "i18n.h"
|
||||
|
||||
|
|
@ -92,10 +93,12 @@ AutomationRegionView::create_line (boost::shared_ptr<ARDOUR::AutomationList> lis
|
|||
bool
|
||||
AutomationRegionView::canvas_event(GdkEvent* ev)
|
||||
{
|
||||
if (ev->type == GDK_BUTTON_PRESS) {
|
||||
PublicEditor& e = trackview.editor ();
|
||||
|
||||
if (ev->type == GDK_BUTTON_PRESS && e.current_mouse_mode() == Editing::MouseObject) {
|
||||
|
||||
/* XXX: icky dcast to Editor */
|
||||
trackview.editor().drags()->set (new RubberbandSelectDrag (dynamic_cast<Editor*> (&trackview.editor()), group), ev);
|
||||
e.drags()->set (new RubberbandSelectDrag (dynamic_cast<Editor*> (&e), group), ev);
|
||||
|
||||
} else if (ev->type == GDK_BUTTON_RELEASE) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue