fix: Issue 6807: Marked notes bleed into note... (#6812)

Issue was caused by an obiwan (off-by-one)
The 'if (y > limit)' test was broken by an incorrect inequality,
 should be >=, and a graphical adjustment made previously in the
 'y = ...' statement. I perserved the graphical adjustment and
 fixed the test to be 'if (y >= limit - 1) { break; }'
This commit is contained in:
consolegrl
2023-08-18 10:26:06 -04:00
committed by GitHub
parent 4ff95072e8
commit 98c5e6af5d

View File

@@ -3357,7 +3357,7 @@ void PianoRoll::paintEvent(QPaintEvent * pe )
const int key_num = m_markedSemiTones.at(x);
const int y = keyAreaBottom() - 1 - m_keyLineHeight *
(key_num - m_startKey + 1);
if(y > keyAreaBottom()) { break; }
if(y >= keyAreaBottom() - 1) { break; }
p.fillRect(m_whiteKeyWidth + 1,
y,
width() - 10,