Skip to content

Commit

Permalink
Fix occasional crash when clicking Key button in piano roll with no c…
Browse files Browse the repository at this point in the history
…lip (#6757)
  • Loading branch information
messmerd authored Jul 2, 2023
1 parent 7f43e3b commit b7027fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/editors/PianoRoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,7 @@ void PianoRoll::hideMidiClip( MidiClip* clip )

int PianoRoll::trackOctaveSize() const
{
if (!m_midiClip) { return KeysPerOctave; }
auto ut = m_midiClip->instrumentTrack()->microtuner();
return ut->enabled() ? ut->octaveSize() : KeysPerOctave;
}
Expand Down

0 comments on commit b7027fe

Please sign in to comment.