Fix last-minute breakage of Ctrl-Click.
authorCarl Hetherington <carl@carlh.net>
Tue, 10 Aug 2010 10:38:48 +0000 (10:38 +0000)
committerCarl Hetherington <carl@carlh.net>
Tue, 10 Aug 2010 10:38:48 +0000 (10:38 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@7585 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_selection.cc

index 53ce04351d3f2f98f7538a1dc77f280422fde1f9..a72d595b2f07c8359e9b13bed79e36d73c7aced0 100644 (file)
@@ -976,7 +976,8 @@ Editor::invert_selection ()
  *  @param end End time in session frames.
  *  @param top Top (lower) y limit in trackview coordinates (ie 0 at the top of the track view)
  *  @param bottom Bottom (higher) y limit in trackview coordinates (ie 0 at the top of the track view)
- *  @param preserve_if_selected true to leave the current selection alone if all of the selectables within the region are already selected.
+ *  @param preserve_if_selected true to leave the current selection alone if we're adding to the selection and all of the selectables
+ *  within the region are already selected.
  */
 bool
 Editor::select_all_within (
@@ -998,7 +999,7 @@ Editor::select_all_within (
                return false;
        }
 
-       if (preserve_if_selected) {
+       if (preserve_if_selected && op != Selection::Toggle) {
                list<Selectable*>::iterator i = found.begin();
                while (i != found.end() && (*i)->get_selected()) {
                        ++i;