Fix invalid for loop to while (#6943)

This commit is contained in:
Rossmaxx
2023-10-21 17:46:15 +05:30
committed by GitHub
parent 476a56e713
commit 259d120725

View File

@@ -2517,7 +2517,7 @@ void PianoRoll::mouseMoveEvent( QMouseEvent * me )
// We iterate from last note in MIDI clip to the first,
// chronologically
auto it = notes.rbegin();
for( int i = 0; i < notes.size(); ++i )
while (it != notes.rend())
{
Note* n = *it;