diff --git a/src/gui/clips/SampleClipView.cpp b/src/gui/clips/SampleClipView.cpp index acf86889032..331826f98f2 100644 --- a/src/gui/clips/SampleClipView.cpp +++ b/src/gui/clips/SampleClipView.cpp @@ -217,6 +217,7 @@ void SampleClipView::paintEvent( QPaintEvent * pe ) setNeedsUpdate( false ); + // Use the clip's height to avoid artifacts when rendering while something else is overlaying the clip. const auto viewPortRect = QRect(0, 0, pe->rect().width(), rect().height()); m_paintPixmapXPosition = pe->rect().x(); @@ -284,7 +285,6 @@ void SampleClipView::paintEvent( QPaintEvent * pe ) { const auto param = SampleThumbnail::VisualizeParameters{ .sampleRect = QRect(offsetStart - m_paintPixmapXPosition, spacing, sampleLength, height() - spacing), - // Use the clips's height to avoid artifects when rendering while something else is over the clip. .viewportRect = viewPortRect, .amplification = sample.amplification(), .reversed = sample.reversed()