13
0

final change for fixing addition of section markers from GUI

This commit is contained in:
Paul Davis 2024-05-21 08:25:32 -06:00
parent f4dfd52cf7
commit 3523de5272

View File

@ -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