two notes tremolo shouldn't work between two chords with different duration

This commit is contained in:
lasconic 2015-02-25 19:55:31 +01:00
parent 6f4416a0b3
commit 3d2482f5c3

View file

@ -2430,6 +2430,11 @@ Element* Chord::drop(const DropData& data)
return 0;
}
Chord* ch2 = static_cast<Chord*>(s->element(track()));
if (ch2->duration() != duration()) {
qDebug("no matching chord for second note of tremolo found");
delete e;
return 0;
}
t->setChords(this, ch2);
}
}