diff options
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index c29fa230d4..02e36d2bce 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -527,22 +527,7 @@ Drag::add_midi_region (MidiTimeAxisView* view, bool commit) struct PresentationInfoTimeAxisViewSorter { bool operator() (TimeAxisView* a, TimeAxisView* b) { - RouteTimeAxisView* ra = dynamic_cast<RouteTimeAxisView*> (a); - RouteTimeAxisView* rb = dynamic_cast<RouteTimeAxisView*> (b); - /* anything not a route goes at the end */ - if (!ra && rb) { - return false; - } - if (!rb && ra) { - return true; - } - if (!ra && !rb) { - /* XXXX pointer comparison. Should use - presentation_info in a time axis view - */ - return a < b; - } - return ra->route()->presentation_info () < rb->route()->presentation_info(); + return a->presentation_info() < b->presentation_info(); } }; |