Skip to content

Commit

Permalink
fix #277734 Applying font style to lyrics via toolbar dies not work
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Nov 5, 2018
1 parent 236c707 commit 536ff70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion libmscore/textbase.cpp
Expand Up @@ -167,7 +167,6 @@ void TextCursor::changeSelectionFormat(FormatId id, QVariant val)
qSwap(c1, c2);
}
int rows = _text->rows();
QList<TextBlock> toDelete;
for (int row = 0; row < rows; ++row) {
TextBlock& t = _text->_layout[row];
if (row < r1)
Expand All @@ -194,6 +193,7 @@ void TextCursor::setFormat(FormatId id, QVariant val)
{
changeSelectionFormat(id, val);
format()->setFormat(id, val);
text()->setTextInvalid();
}

//---------------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion libmscore/textbase.h
Expand Up @@ -233,7 +233,6 @@ class TextBase : public Element {
int hexState { -1 };

void drawSelection(QPainter*, const QRectF&) const;

void insert(TextCursor*, uint code);
void genText();
virtual int getPropertyFlagsIdx(Pid id) const override;
Expand Down

0 comments on commit 536ff70

Please sign in to comment.