Skip to content

Commit

Permalink
Merge pull request musescore#18413 from Eism/score_add_note_crash_fix
Browse files Browse the repository at this point in the history
fixed musescore#18412: Crash when input notes and switching between score and part
  • Loading branch information
Eism committed Jul 5, 2023
2 parents 719ecf5 + 116bbb9 commit 8442f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engraving/libmscore/noteentry.cpp
Expand Up @@ -445,7 +445,7 @@ Ret Score::putNote(const Position& p, bool replace)
ChordRest* cr = _is.cr();

auto checkTied = [&](){
if (!cr->isChord()) {
if (!cr || !cr->isChord()) {
return false;
}
auto ch = toChord(cr);
Expand Down

0 comments on commit 8442f17

Please sign in to comment.