Remove double-nested reversible command when note editing
[ardour.git] / gtk2_ardour / editor_ops.cc
index 8f94a2b02ddaed72dea7d96aacd338c0a7a21b76..512648993c462e7ce869bf4a99936e01b92610b9 100644 (file)
@@ -4192,8 +4192,9 @@ Editor::cut_copy (CutCopyOp op)
                }
        }
 
-       if ( op != Delete )  //"Delete" doesn't change copy/paste buf
+       if ( op != Delete ) { //"Delete" doesn't change copy/paste buf
                cut_buffer->clear ();
+       }
 
        if (entered_marker) {
 
@@ -7303,7 +7304,7 @@ Editor::playhead_forward_to_grid ()
 
        if (pos.frame < max_framepos - 1) {
                pos.frame += 2;
-               snap_to_internal (pos, RoundUpAlways, false);
+               snap_to_internal (pos, RoundUpAlways, false, true);
                _session->request_locate (pos.frame);
        }
 }
@@ -7320,7 +7321,7 @@ Editor::playhead_backward_to_grid ()
 
        if (pos.frame > 2) {
                pos.frame -= 2;
-               snap_to_internal (pos, RoundDownAlways, false);
+               snap_to_internal (pos, RoundDownAlways, false, true);
                _session->request_locate (pos.frame);
        }
 }