Skip to content

Commit

Permalink
ensure tuplet bracket type is set on creation according to score style
Browse files Browse the repository at this point in the history
also tuplet number type
  • Loading branch information
asattely committed Mar 31, 2023
1 parent be093e6 commit 015bf0f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/notation/internal/notationactioncontroller.cpp
Original file line number Diff line number Diff line change
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 015bf0f

Please sign in to comment.