Skip to content

Commit

Permalink
Merge pull request #26734 from RomanPudashkin/realize_chord_symbols_c…
Browse files Browse the repository at this point in the history
…rash

Fix #26650: Crash when realizing chord symbols
  • Loading branch information
mike-spa authored Feb 26, 2025
2 parents 808301a + ea43630 commit 1bbc56b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/engraving/dom/cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4301,6 +4301,12 @@ void Score::cmdRealizeChordSymbols(bool literal, Voicing voicing, HDuration dura
note->setNval(nval, tick);
}

if (!seg->isChordRestType()) {
Segment* newCrSeg = seg->measure()->undoGetSegment(SegmentType::ChordRest, seg->tick());
newCrSeg->setTicks(seg->ticks());
seg = newCrSeg;
}

setChord(this, seg, h->track(), chord, duration); //add chord using template
delete chord;
}
Expand Down

0 comments on commit 1bbc56b

Please sign in to comment.