Skip to content

Commit

Permalink
Fix for issue LMMS#2713, adjusted Note::setKey bounds to fix one-off-…
Browse files Browse the repository at this point in the history
…the-end error
  • Loading branch information
Teuthis committed Apr 15, 2016
1 parent 13595bb commit 946ae85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Note.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ void Note::setPos( const MidiTime & pos )

void Note::setKey( const int key )
{
const int k = qBound( 0, key, NumKeys );
const int k = qBound( 0, key, NumKeys - 1 );
m_key = k;
}

Expand Down

0 comments on commit 946ae85

Please sign in to comment.