diff options
Diffstat (limited to 'gtk2_ardour/track_selection.cc')
-rwxr-xr-x | gtk2_ardour/track_selection.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gtk2_ardour/track_selection.cc b/gtk2_ardour/track_selection.cc new file mode 100755 index 0000000000..3e428b1a94 --- /dev/null +++ b/gtk2_ardour/track_selection.cc @@ -0,0 +1,19 @@ +#include <algorithm> +#include "track_selection.h" + +using namespace std; + +list<TimeAxisView*> +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()) { + added.push_back (*i); + push_back (*i); + } + } + + return added; +} |