Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
If copying to another track, allow same start and end position.
  • Loading branch information
Spekular authored and IanCaio committed Mar 28, 2021
1 parent df92cff commit cc64505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/widgets/TrackContentWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit cc64505

Please sign in to comment.