Fix for issue #2713, adjusted Note::setKey bounds to fix one-off-the-end error

This commit is contained in:
Chris Aiken
2016-04-15 19:24:27 -04:00
parent 13595bbbcf
commit 946ae85b5f

View File

@@ -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;
}