musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
11.79k stars 2.56k forks source link

BeamLayout::checkCross…: Update seg shape after layoutChords1 #23350

Closed cbjeukendrup closed 1 week ago

cbjeukendrup commented 1 week ago

Among other things, calling layoutChords1 results in the ledger lines being re-created. If we don't update the segment shape, it will contain pointers to the old ledger lines that had been deleted, which causes problems later on in the layout process.

Resolves: https://github.com/musescore/MuseScore/issues/21185