mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +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
|
|
@ -662,7 +662,7 @@ struct RegionPositionSorter {
|
|||
};
|
||||
|
||||
bool
|
||||
MidiStreamView::paste (ARDOUR::framepos_t pos, const Selection& selection, PasteContext& ctx)
|
||||
MidiStreamView::paste (ARDOUR::framepos_t pos, const Selection& selection, PasteContext& ctx, const int32_t& sub_num)
|
||||
{
|
||||
/* Paste into the first region which starts on or before pos. Only called when
|
||||
using an internal editing tool. */
|
||||
|
|
@ -690,5 +690,5 @@ MidiStreamView::paste (ARDOUR::framepos_t pos, const Selection& selection, Paste
|
|||
}
|
||||
|
||||
MidiRegionView* mrv = dynamic_cast<MidiRegionView*> (*prev);
|
||||
return mrv ? mrv->paste(pos, selection, ctx) : false;
|
||||
return mrv ? mrv->paste(pos, selection, ctx, sub_num) : false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue