Snap cursor for section_rect ctx menu, just like popup_ruler_menu

This commit is contained in:
Robin Gareus 2023-09-15 14:49:33 +02:00
parent 8da5d49e54
commit cc0c00f807
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 1 additions and 0 deletions

View File

@ -1174,6 +1174,7 @@ Editor::section_rect_event (GdkEvent* ev, Location* loc, ArdourCanvas::Rectangle
assert (l);
timepos_t where (canvas_event_time (ev));
snap_to (where, Temporal::RoundNearest);
section_box_menu.set_name ("ArdourContextMenu");
MenuList& items (section_box_menu.items());