Fix sample clip position when reversing (#7446)

This commit is contained in:
regulus79
2024-09-13 18:54:00 -04:00
committed by GitHub
parent d703f39153
commit 48314959b8

View File

@@ -330,6 +330,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();
}