diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-02-08 12:50:32 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-02-08 12:50:32 +0000 |
commit | 53cb1b6572f1690d3eaf688880d85e743b42d4cd (patch) | |
tree | b231a4fdb27659a3060c97292c4e92708433cc90 /gtk2_ardour/editor_drag.cc | |
parent | e061fa300980db4ba0f6a5978bb2df103ee6e455 (diff) |
mouse draw mode can draw AND select (and trim) notes (but trim cursors don't appear yet)
git-svn-id: svn://localhost/ardour2/branches/3.0@11470 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index c0c73d40e5..fa77b3061b 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -4066,8 +4066,11 @@ void NoteDrag::finished (GdkEvent* ev, bool moved) { if (!moved) { - if (_editor->current_mouse_mode() == Editing::MouseObject) { - + /* no motion - select note */ + + if (_editor->current_mouse_mode() == Editing::MouseObject || + _editor->current_mouse_mode() == Editing::MouseDraw) { + if (_was_selected) { bool add = Keyboard::modifier_state_equals (ev->button.state, Keyboard::PrimaryModifier); if (add) { |