lenmus / lomse

A C++ library for rendering, editing and playing back music scores.
MIT License
120 stars 28 forks source link

Fix bug in chord engraver that causes a crash #333

Closed cecilios closed 2 years ago

cecilios commented 2 years ago

Using test-score.musicxml.txt when going to engrave the chord in second instrument, chord engraver looks for the applicable clef but, incorrectly, finds the clef change in instrument 1 because the method does not check for the clef instrument, and tries to assign the clef to the second staff of instrument 2 that do not exist, causing the crash.

image