From 1da5c7f3895722a29d0396e43cebfeeb8fad3110 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 9 Dec 2023 01:43:40 +0100 Subject: [PATCH] Fix ordering of locations There are two lists, one for ranges, and one for everything else. --- gtk2_ardour/location_ui.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/location_ui.cc b/gtk2_ardour/location_ui.cc index d3eb19554b..77e82da5a4 100644 --- a/gtk2_ardour/location_ui.cc +++ b/gtk2_ardour/location_ui.cc @@ -930,7 +930,7 @@ LocationUI::location_added (Location* location) Box_Helpers::BoxList::iterator j = children.begin (); while (i != loc.end()) { - if (location->flags() != (*i)->flags()) { + if (location->is_range_marker() != (*i)->is_range_marker()) { /* Skip locations in the session list that aren't of the right type */ ++i; continue;