Skip to content

Commit

Permalink
Merge pull request #4331 from mattmcclinch/279531-unused-voice
Browse files Browse the repository at this point in the history
fix #279531: Changing to unused voice in re-pitch mode causes crash
  • Loading branch information
anatoly-os committed Dec 10, 2018
2 parents ebdc80a + 504b584 commit 78aafaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mscore/keyb.cpp
Expand Up @@ -69,7 +69,7 @@ void MuseScore::updateInputState(Score* score)
InputState& is = score->inputState();
if (is.noteEntryMode()) {
if (is.usingNoteEntryMethod(NoteEntryMethod::REPITCH)) {
TDuration d = is.cr()->durationType();
TDuration d = is.cr() ? is.cr()->durationType() : TDuration::DurationType::V_QUARTER;
if (!d.isValid() || d.isZero() || d.isMeasure())
d = TDuration::DurationType::V_QUARTER;
is.setDuration(d);
Expand Down

0 comments on commit 78aafaf

Please sign in to comment.