summaryrefslogtreecommitdiff
path: root/gtk2_ardour/selection.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-01-27 01:26:44 +0000
committerCarl Hetherington <carl@carlh.net>2012-01-27 01:26:44 +0000
commit5f750624b00a976ac9baa1b400164c170a9277ed (patch)
tree7960d16ea70f28be3920290bb65ca14dc551d2ee /gtk2_ardour/selection.cc
parente3b21111094556494993a711edf6fbc6f826a057 (diff)
Don't add markers to the selection multiple times when adding a list.
git-svn-id: svn://localhost/ardour2/branches/3.0@11357 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/selection.cc')
-rw-r--r--gtk2_ardour/selection.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/selection.cc b/gtk2_ardour/selection.cc
index 7d465f3ddf..ea74a6b919 100644
--- a/gtk2_ardour/selection.cc
+++ b/gtk2_ardour/selection.cc
@@ -1045,6 +1045,9 @@ void
Selection::add (const list<Marker*>& m)
{
markers.insert (markers.end(), m.begin(), m.end());
+ markers.sort ();
+ markers.unique ();
+
MarkersChanged ();
}