Skip to content
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 #293897: [Tablature] Note value repeat section: setting "Never" broken #5295

Merged
merged 1 commit into from
Sep 4, 2019

Conversation

mattmcclinch
Copy link
Contributor

@mattmcclinch mattmcclinch commented Sep 2, 2019

Resolves: https://musescore.org/en/node/293897.

This followup to 3cd5154 makes sure not to repeat tablature duration symbols when "Repeat" is set to "Never".

@MarcSabatella
Copy link
Contributor

Wait, though, is that correct? I would have thought that meant literally don't repeat the duration symbol later, but still show it at the point of change.

@mattmcclinch
Copy link
Contributor Author

Yes, you are correct. My description was worded poorly, so I have edited it to make it clearer. This does not prevent tablature duration symbols from being shown at the point of change, because in that case, an earlier condition would have evaluated to true.

@@ -2285,6 +2285,8 @@ void Chord::layoutTablature()
|| prevCR->tuplet() != tuplet()
|| prevCR->type() == ElementType::REST)
needTabDur = true;
else if (tab->symRepeat() == TablatureSymbolRepeat::NEVER)
; // No tab duration symbol needed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code will lead to a warning on most compilers. Can the code be rearranged to avoid empty if case?

…roken

This followup to 3cd5154 makes sure not to create tablature duration symbols when "Repeat" is set to "Never".
@mattmcclinch
Copy link
Contributor Author

Okay, I rearranged the code to avoid the empty if case.

@anatoly-os anatoly-os merged commit 58ad805 into musescore:master Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants