Merge pull request #4548 from mattmcclinch/281321-time-delete

fix #281321: Create irregular measures from second measure and following results in corruption
This commit is contained in:
anatoly-os 2019-01-09 08:49:16 +02:00 committed by GitHub
commit 6d522eedb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3040,7 +3040,7 @@ void Score::timeDelete(Measure* m, Segment* startSegment, const Fraction& f)
undoRemoveElement(cr);
ChordRest* newCR = toChordRest(cr->clone());
newCR->setDuration(cr->duration() - f);
undoAddCR(newCR, m, etick);
undoAddCR(newCR, m, m->tick() + etick);
}
else
cr->undoChangeProperty(Pid::DURATION, cr->duration() - f);