mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04: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
|
|
@ -1585,7 +1585,7 @@ RouteTimeAxisView::cut_copy_clear (Selection& selection, CutCopyOp op)
|
|||
}
|
||||
|
||||
bool
|
||||
RouteTimeAxisView::paste (framepos_t pos, const Selection& selection, PasteContext& ctx)
|
||||
RouteTimeAxisView::paste (framepos_t pos, const Selection& selection, PasteContext& ctx, const int32_t& sub_num)
|
||||
{
|
||||
if (!is_track()) {
|
||||
return false;
|
||||
|
|
@ -1619,7 +1619,7 @@ RouteTimeAxisView::paste (framepos_t pos, const Selection& selection, PasteConte
|
|||
framecnt_t amount = extent.second - extent.first;
|
||||
pl->ripple(pos, amount * ctx.times, boost::shared_ptr<Region>());
|
||||
}
|
||||
pl->paste (*p, pos, ctx.times);
|
||||
pl->paste (*p, pos, ctx.times, sub_num);
|
||||
|
||||
vector<Command*> cmds;
|
||||
pl->rdiff (cmds);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue