Skip to content
Snippets Groups Projects
Commit 62c51855 authored by SeeLook's avatar SeeLook :musical_note:
Browse files

TmeasureObject: fixed crash on insert

parent 0d2bea7b
No related branches found
No related tags found
No related merge requests found
......@@ -606,7 +606,7 @@ void TmeasureObject::releaseAtStart(int dur, Tpairs &notesToOut)
void TmeasureObject::insertSilently(int id, TnotePair *np)
{
m_notes.insert(id, np);
m_notes.insert(qBound(0, id, m_notes.size()), np);
if (np->item() == nullptr)
np->setNoteItem(new TnoteItem(m_staff, np));
else if (m_staff != np->item()->staff())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment