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
This commit is contained in:
Carl Hetherington 2012-01-27 01:26:44 +00:00
parent e3b2111109
commit 5f750624b0

View file

@ -1045,6 +1045,9 @@ void
Selection::add (const list<Marker*>& m)
{
markers.insert (markers.end(), m.begin(), m.end());
markers.sort ();
markers.unique ();
MarkersChanged ();
}