Skip to content

Commit

Permalink
Fix GH#25617: Prevent crash importing MusicXML file containing grace …
Browse files Browse the repository at this point in the history
…rest followed by tuple starting with rest

Backport of musescore#25629
  • Loading branch information
lvinken authored and Jojo-Schmitz committed Nov 24, 2024
1 parent 44ea622 commit bed8345
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions importexport/musicxml/importmxmlpass2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6286,9 +6286,13 @@ Note* MusicXMLParserPass2::note(const QString& partId,

// begin allocation
if (rest) {
if (!grace) {
const int track = msTrack + msVoice;
cr = addRest(_score, measure, noteStartTime, track, msMove,
duration, dura);
}
else
qDebug("ignoring grace rest");
}
else {
if (!grace) {
Expand Down

0 comments on commit bed8345

Please sign in to comment.