If copying to another track, allow same start and end position.
This commit is contained in:
Spekular
2020-12-13 16:40:57 +01:00
committed by GitHub
parent 3d7d0051f3
commit 09ee5c7f1f

View File

@@ -508,7 +508,7 @@ bool TrackContentWidget::pasteSelection( TimePos tcoPos, const QMimeData * md, b
TimePos pos = tcoElement.attributeNode( "pos" ).value().toInt() + offset;
// If we land on ourselves, offset by one snap
TimePos shift = TimePos::ticksPerBar() * gui->songEditor()->m_editor->getSnapSize();
if (offset == 0) { pos += shift; }
if (offset == 0 && initialTrackIndex == currentTrackIndex) { pos += shift; }
TrackContentObject * tco = t->createTCO( pos );
tco->restoreState( tcoElement );