13
0

(maybe backport) reparent any section-marker to the arrange ruler

* regardless of type, (scene, cd, or cue), if it has the isSection flag,
    it should be prioritized to show up in the Arrangement ruler
This commit is contained in:
Ben Loftis 2024-05-31 09:21:17 -05:00
parent 0b0bee974a
commit 91f5bd0131

View File

@ -561,12 +561,12 @@ Editor::reparent_location_markers (LocationMarkers* lam, ArdourCanvas::Item* new
void Editor::ensure_marker_updated (LocationMarkers* lam, Location* location) void Editor::ensure_marker_updated (LocationMarkers* lam, Location* location)
{ {
if (location->is_cd_marker()) { if (location->is_section()) {
reparent_location_markers (lam, section_marker_group);
} else if (location->is_cd_marker()) {
reparent_location_markers (lam, marker_group); reparent_location_markers (lam, marker_group);
} else if (location->is_scene()) { } else if (location->is_scene()) {
reparent_location_markers (lam, marker_group); reparent_location_markers (lam, marker_group);
} else if (location->is_section()) {
reparent_location_markers (lam, section_marker_group);
} else if (location->is_cue_marker()) { } else if (location->is_cue_marker()) {
reparent_location_markers (lam, marker_group); reparent_location_markers (lam, marker_group);
} else if (location->is_mark() || location->matches (Location::Flags(0))) { } else if (location->is_mark() || location->matches (Location::Flags(0))) {