From 44c2da31979dd3cd719b6d33e76306341eb03345 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 28 Apr 2010 22:54:09 +0000 Subject: [PATCH] if selecting a range in mouse range mode and there is already a time selection, clear it so that the action can actually do something other than just reselect what is already selected git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@7015 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_selection.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index 40f98b11e9..d329ca1252 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -1315,7 +1315,11 @@ Editor::select_range_between () { nframes64_t start; nframes64_t end; - + + if (mouse_mode == MouseRange && !selection->time.empty()) { + selection->clear_time (); + } + if (!get_edit_op_range (start, end)) { return; }