From e8c25f02981b12ca2dc254dcf67328becb763e81 Mon Sep 17 00:00:00 2001 From: regulus79 <117475203+regulus79@users.noreply.github.com> Date: Wed, 9 Oct 2024 19:41:38 -0400 Subject: [PATCH] Change offset from float to int --- src/gui/clips/AutomationClipView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/clips/AutomationClipView.cpp b/src/gui/clips/AutomationClipView.cpp index 8ace9d72b9d..d0980985c09 100644 --- a/src/gui/clips/AutomationClipView.cpp +++ b/src/gui/clips/AutomationClipView.cpp @@ -275,7 +275,7 @@ void AutomationClipView::paintEvent( QPaintEvent * ) const float y_scale = max - min; const float h = ( height() - 2 * BORDER_WIDTH ) / y_scale; const float ppTick = ppb / TimePos::ticksPerBar(); - float offset = m_clip->startTimeOffset() * ppTick; + const int offset = m_clip->startTimeOffset() * ppTick; p.translate( 0.0f, max * height() / y_scale - BORDER_WIDTH ); p.scale( 1.0f, -h );