diff options
author | Carl Hetherington <carl@carlh.net> | 2009-06-22 01:01:43 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-06-22 01:01:43 +0000 |
commit | c9e37fcc1430a674328069d6a3a5ec7e4284f282 (patch) | |
tree | bcf75a83623c958ca494e9612bdc32109fd10999 /gtk2_ardour/track_selection.cc | |
parent | 442eef90ab056ed373e8f5992602700a9f40cbe1 (diff) |
Option to fit a route group to the editor window.
git-svn-id: svn://localhost/ardour2/branches/3.0@5241 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/track_selection.cc')
-rwxr-xr-x | gtk2_ardour/track_selection.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk2_ardour/track_selection.cc b/gtk2_ardour/track_selection.cc index 3e428b1a94..5e29224491 100755 --- a/gtk2_ardour/track_selection.cc +++ b/gtk2_ardour/track_selection.cc @@ -9,7 +9,7 @@ TrackSelection::add (list<TimeAxisView*> const & t) list<TimeAxisView*> added; for (TrackSelection::const_iterator i = t.begin(); i != t.end(); ++i) { - if (find (begin(), end(), *i) == end()) { + if (!contains (*i)) { added.push_back (*i); push_back (*i); } @@ -17,3 +17,9 @@ TrackSelection::add (list<TimeAxisView*> const & t) return added; } + +bool +TrackSelection::contains (TimeAxisView const * t) const +{ + return find (begin(), end(), t) != end(); +} |