Midi CC events have no event-ID
[ardour.git] / libs / evoral / evoral / Sequence.hpp
index dd5dd17e19d5a06be66ebe339fdb6471567f2485..93e97c65e181ae94ae234cf0e137c985d8088e1d 100644 (file)
@@ -134,6 +134,7 @@ public:
                }
        };
 
+#if 0 // NOT USED
        struct LaterNoteComparator {
                typedef const Note<Time>* value_type;
                inline bool operator()(const boost::shared_ptr< const Note<Time> > a,
@@ -141,12 +142,13 @@ public:
                        return a->time() > b->time();
                }
        };
+#endif
 
        struct LaterNoteEndComparator {
                typedef const Note<Time>* value_type;
                inline bool operator()(const boost::shared_ptr< const Note<Time> > a,
                                       const boost::shared_ptr< const Note<Time> > b) const {
-                       return a->end_time() > b->end_time();
+                       return a->end_time().to_double() > b->end_time().to_double();
                }
        };