PianoRoll::paintEvent: don't shadow member variable (#7181)

This commit is contained in:
Kevin Zander
2024-03-30 00:15:26 -05:00
committed by GitHub
parent 03f885abc2
commit 9c591b178f

View File

@@ -3031,7 +3031,7 @@ void PianoRoll::paintEvent(QPaintEvent * pe )
if (hasValidMidiClip())
{
int pianoAreaHeight = keyAreaBottom() - keyAreaTop();
int m_pianoKeysVisible = pianoAreaHeight / m_keyLineHeight;
m_pianoKeysVisible = pianoAreaHeight / m_keyLineHeight;
int partialKeyVisible = pianoAreaHeight % m_keyLineHeight;
// check if we're below the minimum key area size
if (m_pianoKeysVisible * m_keyLineHeight < KEY_AREA_MIN_HEIGHT)