Skip to content

Commit

Permalink
Change offset from float to int
Browse files Browse the repository at this point in the history
  • Loading branch information
regulus79 committed Oct 9, 2024
1 parent 3c858b5 commit e8c25f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/clips/AutomationClipView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit e8c25f0

Please sign in to comment.