PianoRoll: fix crash when trying to mark octave chord
This commit is contained in:
committed by
Tobias Doerffel
parent
7633affa20
commit
d43eb46d81
@@ -667,7 +667,7 @@ void pianoRoll::markSemiTone( int i )
|
||||
|
||||
const int first = chord->isScale() ? 0 : key;
|
||||
const int last = chord->isScale() ? NumKeys : key + chord->last();
|
||||
const int cap = chord->isScale() ? KeysPerOctave : chord->last();
|
||||
const int cap = ( chord->isScale() || chord->last() == 0 ) ? KeysPerOctave : chord->last();
|
||||
|
||||
for( int i = first; i <= last; i++ )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user