fix logic for context-menu-mouse-dependent actions so that if the edit point is not the mouse, we still use the edit point even from the context menu. klar?

git-svn-id: svn://localhost/ardour2/branches/3.0@11117 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-12-30 16:21:10 +00:00
parent 42aea0b9fd
commit 6df1d06f8b
2 changed files with 5 additions and 4 deletions

View file

@ -4558,13 +4558,14 @@ void
Editor::insert_patch_change (bool from_context)
{
RegionSelection rs = get_regions_from_selection_and_entered ();
if (rs.empty ()) {
return;
}
framepos_t p;
if (!from_context) {
if (!from_context || (_edit_point != EditAtMouse)) {
p = get_preferred_edit_position (false);
} else {
p = event_frame (&context_click_event, 0, 0);