Skip to content

Commit

Permalink
Merge pull request #25548 from Jojo-Schmitz/4.4.2-xml-title
Browse files Browse the repository at this point in the history
[4.4.4] Fix GH#24553: MusicXML: A title like "Jazz Piece No. 5" get interpreted as a subtitle
  • Loading branch information
Eism authored Nov 21, 2024
2 parents c5c81eb + f8fe8f9 commit 1f05ce7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,11 @@ static void inferFromTitle(String& title, String& inferredSubtitle, String& infe
StringList subtitleLines;
StringList creditLines;
StringList titleLines = title.split(std::regex("\\n"));
for (size_t i = titleLines.size(); i > 0; --i) {
size_t nrOfTitleLines = titleLines.size();
if (nrOfTitleLines == 1) {
return;
}
for (size_t i = nrOfTitleLines; i > 0; --i) {
String line = titleLines[i - 1];
if (isLikelyCreditText(line, true)) {
creditLines.insert(0, line);
Expand Down
Binary file modified vtest/scores/dynamics-10.mscz
Binary file not shown.
Binary file modified vtest/scores/lyrics-26.mscz
Binary file not shown.

0 comments on commit 1f05ce7

Please sign in to comment.