Skip to content

Commit

Permalink
Fix glitch with automation points
Browse files Browse the repository at this point in the history
  • Loading branch information
zonkmachine committed May 19, 2024
1 parent 0ee05f5 commit 8805f5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/editors/AutomationEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1652,7 +1652,7 @@ float AutomationEditor::getLevel(int y )
/ (float)( level_line_y - ( TOP_MARGIN + 2 ) ) :
( level_line_y - y ) / (float)m_y_delta ) ) / m_step ) * m_step;
// some range-checking-stuff
level = qBound( m_bottomLevel, level, m_topLevel );
level = qBound(roundf(m_bottomLevel), level, roundf(m_topLevel));

return( level );
}
Expand Down

0 comments on commit 8805f5d

Please sign in to comment.