Skip to content

Commit

Permalink
Merge pull request #17020 from asattely/tuplet-bracket-style
Browse files Browse the repository at this point in the history
Fix #16653: Ensure tuplet bracket type is set according to score style on tuplet creation
  • Loading branch information
RomanPudashkin committed Apr 10, 2023
2 parents 12544b2 + 015bf0f commit f4131cc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/notation/internal/notationactioncontroller.cpp
Expand Up @@ -845,6 +845,13 @@ void NotationActionController::putTuplet(int tupletCount)
options.ratio.setNumerator(tupletCount);
options.ratio.setDenominator(2);
options.autoBaseLen = true;
// get the bracket type from score style settings
if (INotationStylePtr style = currentNotationStyle()) {
int bracketType = style->styleValue(StyleId::tupletBracketType).toInt();
options.bracketType = static_cast<TupletBracketType>(bracketType);
int numberType = style->styleValue(StyleId::tupletNumberType).toInt();
options.numberType = static_cast<TupletNumberType>(numberType);
}

putTuplet(options);
}
Expand Down

0 comments on commit f4131cc

Please sign in to comment.