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