mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
ARAPluginDemo: Fix dereferencing beyond end iterator
This commit is contained in:
parent
b46edc31ce
commit
f5051d4e39
1 changed files with 1 additions and 1 deletions
|
|
@ -1692,7 +1692,7 @@ private:
|
||||||
const auto end = chordsReader.end();
|
const auto end = chordsReader.end();
|
||||||
auto it = begin;
|
auto it = begin;
|
||||||
|
|
||||||
while (it->position <= quarterPosition && it != end)
|
while (it != end && it->position <= quarterPosition)
|
||||||
++it;
|
++it;
|
||||||
|
|
||||||
if (it != begin)
|
if (it != begin)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue