Merge pull request #3556 from mattmcclinch/270458-repitch-to-rest

fix #270458: Re-Pitch a note to a rest.
This commit is contained in:
anatoly-os 2018-06-02 18:20:38 +02:00 committed by GitHub
commit 061a51b593
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,6 +69,8 @@ void MuseScore::updateInputState(Score* score)
{
InputState& is = score->inputState();
if (is.noteEntryMode()) {
if (is.usingNoteEntryMethod(NoteEntryMethod::REPITCH))
is.setDuration(is.cr()->durationType());
Staff* staff = score->staff(is.track() / VOICES);
switch (staff->staffType(is.tick())->group()) {
case StaffGroup::STANDARD: