fix #17521: Replacing arpeggio and undo removes it completely

This commit is contained in:
lasconic 2013-04-26 18:40:26 +02:00
parent a0dc9ae572
commit 0a19f78813

View file

@ -1755,6 +1755,8 @@ Element* Chord::drop(const DropData& data)
case ARPEGGIO:
{
Arpeggio* a = static_cast<Arpeggio*>(e);
if (arpeggio())
score()->undoRemoveElement(arpeggio());
a->setTrack(track());
a->setParent(this);
a->setHeight(spatium() * 5); //DEBUG