Fix adding multiple notes with the same time stamp (geeze).
authorDavid Robillard <d@drobilla.net>
Thu, 22 Oct 2009 21:54:32 +0000 (21:54 +0000)
committerDavid Robillard <d@drobilla.net>
Thu, 22 Oct 2009 21:54:32 +0000 (21:54 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@5872 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/evoral/evoral/Sequence.hpp

index 21db34eb68099434e4314a20c7e609280d0994a4..8c0eab1be9c8fb6a9a89d56acad156297fdd729c 100644 (file)
@@ -21,8 +21,7 @@
 
 #include <vector>
 #include <queue>
-#include <deque>
-#include <map>
+#include <set>
 #include <utility>
 #include <boost/shared_ptr.hpp>
 #include <glibmm/thread.h>
@@ -133,7 +132,7 @@ public:
                }
        };
 
-       typedef std::set<boost::shared_ptr< Note<Time> >, EarlierNoteComparator> Notes;
+       typedef std::multiset<boost::shared_ptr< Note<Time> >, EarlierNoteComparator> Notes;
        inline       Notes& notes()       { return _notes; }
        inline const Notes& notes() const { return _notes; }