Skip to content

Commit

Permalink
Merge pull request #10199 from Jojo-Schmitz/321716-fix-noteentry-8th-…
Browse files Browse the repository at this point in the history
…crash

[MU4] Fix #321716: Realtime note entry 8th crash
  • Loading branch information
RomanPudashkin committed Jan 10, 2022
2 parents b30ac74 + 4d289d8 commit a4138fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engraving/libmscore/noteentry.cpp
Expand Up @@ -203,7 +203,7 @@ Note* Score::addPitch(NoteVal& nval, bool addFlag, InputState* externalInputStat
// We could split the duration at the barline and continue into the next bar, but this would create extra
// notes, extra ties, and extra pain. Instead, we simply truncate the duration at the barline.
Fraction ticks2measureEnd = is.segment()->measure()->ticks() - is.segment()->rtick();
duration = is.duration() > ticks2measureEnd ? ticks2measureEnd : is.duration().fraction();
duration = is.duration().fraction() > ticks2measureEnd ? ticks2measureEnd : is.duration().fraction();
} else {
duration = is.duration().fraction();
}
Expand Down

0 comments on commit a4138fb

Please sign in to comment.