From 3523de5272a1f1a99751e2714c5d371492f74226 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 21 May 2024 08:25:32 -0600 Subject: [PATCH] final change for fixing addition of section markers from GUI --- gtk2_ardour/editor_ops.cc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 6096dcea76..59852391df 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -2459,13 +2459,7 @@ Editor::add_location_from_playhead_cursor () void Editor::add_section_marker_from_playhead_cursor () { - timepos_t where = timepos_t(_session->audible_sample()); - add_location_mark (where); - Location *mark = _session->locations()->mark_at (where); - if (mark) { - mark->set_section(true); - } - + add_location_mark_with_flag (timepos_t (_session->audible_sample ()), Location::Flags (Location::IsMark|Location::IsSection), 0); } bool