PianoRoll: fix crash when trying to mark octave chord

This commit is contained in:
Raine M. Ekman
2013-09-13 22:43:20 +02:00
committed by Tobias Doerffel
parent 7633affa20
commit d43eb46d81

View File

@@ -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++ )
{