mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
Paste uses exact beats. rework _start_beats calculation in copy-with-offset ctor.
This commit is contained in:
parent
94e0a15325
commit
93c24e4433
20 changed files with 59 additions and 50 deletions
|
|
@ -3491,7 +3491,7 @@ MidiRegionView::selection_as_cut_buffer () const
|
|||
|
||||
/** This method handles undo */
|
||||
bool
|
||||
MidiRegionView::paste (framepos_t pos, const ::Selection& selection, PasteContext& ctx)
|
||||
MidiRegionView::paste (framepos_t pos, const ::Selection& selection, PasteContext& ctx, const int32_t& sub_num)
|
||||
{
|
||||
bool commit = false;
|
||||
// Paste notes, if available
|
||||
|
|
@ -3506,7 +3506,7 @@ MidiRegionView::paste (framepos_t pos, const ::Selection& selection, PasteContex
|
|||
typedef RouteTimeAxisView::AutomationTracks ATracks;
|
||||
const ATracks& atracks = midi_view()->automation_tracks();
|
||||
for (ATracks::const_iterator a = atracks.begin(); a != atracks.end(); ++a) {
|
||||
if (a->second->paste(pos, selection, ctx)) {
|
||||
if (a->second->paste(pos, selection, ctx, sub_num)) {
|
||||
commit = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue