Skip to content

Commit

Permalink
Fix GH#24553: MusicXML: A title like "Jazz Piece No. 5" get interpret…
Browse files Browse the repository at this point in the history
…ed as a subtitle
  • Loading branch information
Jojo-Schmitz committed Sep 25, 2024
1 parent 6143d8d commit 6085f4a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ 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) {
for (size_t i = titleLines.size(); i > 1; --i) {
String line = titleLines[i - 1];
if (isLikelyCreditText(line, true)) {
creditLines.insert(0, line);
Expand Down

0 comments on commit 6085f4a

Please sign in to comment.