Skip to content

Commit

Permalink
Fix #314551: Duplicate check of identical expression
Browse files Browse the repository at this point in the history
Apparently a long time bug, introduced 6 years ago in f406783
  • Loading branch information
Jojo-Schmitz authored and vpereverzev committed Dec 22, 2020
1 parent 5a03ffe commit e9cc472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion importexport/midiimport/importmidi_voice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ bool areNotesSortedByOffTimeInAscOrder(
bool areNotesSortedByOffTimeInAscOrder(const QList<MidiNote>& notes)
{
for (int i = 0; i != (int)notes.size() - 1; ++i) {
if (notes[i].offTime > notes[i].offTime)
if (notes[i].offTime > notes[i + 1].offTime)
return false;
}
return true;
Expand Down

0 comments on commit e9cc472

Please sign in to comment.