-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix GH#24553: MusicXML: A title like "Jazz Piece No. 5" get interpreted as a subtitle #24555
Conversation
8425569
to
77a7b54
Compare
…ed as a subtitle Backport of musescore#24555 and (a part of) musescore#22056, the latter having caused a bug fixed by the former
Note that the exact functionality is still different than before 0ea3638. Before: After: |
Question is whether that is better or not, isn't it? |
That's up to @miiizen and @oktophonie. |
of course it is ;-) |
Can we have this reviewed please? Ported to 4.4.3, see #24750 |
I can see the problem here, but I don't think this is the way we should fix it. I'd prefer to prevent this situation either:
|
Isn't my change doing exactly not inferring subtitles or credits when there is only one line of text ? It just skips the loop if there's only one line |
We'd still like to check if the first line of a title would be better suited to a subtitle when there is more than one line. |
Which again would leave the score without a title |
So something like this would pass muster? size_t nrOfTitleLines = titleLines.size();
if (nrOfTitleLines == 1) {
return;
}
for (size_t i = nrOfTitleLines; i > 0; --i) {
... |
77a7b54
to
7d84849
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, thanks!
…ed as a subtitle Backport of musescore#24555 and (a part of) musescore#22056, the latter having caused a bug fixed by the former
7d84849
to
64e8561
Compare
Rebased to fix merge conflicts. |
64e8561
to
a6514af
Compare
…ed as a subtitle Backport of musescore#24555 and (a part of) musescore#22056, the latter having caused a bug fixed by the former
Resolves: #24553
Turned out to be a rather simple off-by-one error, @miiizen ?
Edit: Apparently not, but let's not try it infer anything from a title if it is just one line.