Skip to content

Commit

Permalink
Fix sample clip position when reversing (LMMS#7446)
Browse files Browse the repository at this point in the history
  • Loading branch information
regulus79 authored and mmeeaallyynn committed Oct 27, 2024
1 parent bb6f354 commit 83a819d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/clips/SampleClipView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ void SampleClipView::paintEvent( QPaintEvent * pe )
void SampleClipView::reverseSample()
{
m_clip->m_sample.setReversed(!m_clip->m_sample.reversed());
m_clip->setStartTimeOffset(m_clip->length() - m_clip->startTimeOffset() - m_clip->sampleLength());
Engine::getSong()->setModified();
update();
}
Expand Down

0 comments on commit 83a819d

Please sign in to comment.