Skip to content

Commit

Permalink
Fix #135791: Make dynamics text style italic
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacWeiss authored and lasconic committed Mar 16, 2017
1 parent fa578f9 commit 5b43154
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libmscore/style.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ void initStyle(MStyle* s)
AlignmentFlags::LEFT | AlignmentFlags::TOP, QPointF(), OffsetType::ABS));

// dynamics size is 12pt for bravura-text
s->addTextStyle(TextStyle(QT_TRANSLATE_NOOP ("TextStyle", "Dynamics"), ff, 12, false, false,false,
s->addTextStyle(TextStyle(QT_TRANSLATE_NOOP ("TextStyle", "Dynamics"), ff, 12, false, true, false,
AlignmentFlags::HCENTER | AlignmentFlags::BASELINE, QPointF(0.0, 8.0), OffsetType::SPATIUM, true));
s->addTextStyle(TextStyle(QT_TRANSLATE_NOOP ("TextStyle", "Technique"), ff, 12, false, true, false,
AlignmentFlags::LEFT | AlignmentFlags::BASELINE, QPointF(0.0, -2.0), OffsetType::SPATIUM, true));
Expand Down
2 changes: 1 addition & 1 deletion mtest/libmscore/text/tst_text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ void TestText::testPaste()
void TestText::testTextProperties()
{
Text* text = new Text(score);
text->setTextStyle(score->textStyle(TextStyleType::DYNAMICS));
text->setTextStyle(score->textStyle(TextStyleType::STAFF));

text->startEdit(0, QPoint());
text->layout();
Expand Down

0 comments on commit 5b43154

Please sign in to comment.