Skip to content

Commit

Permalink
Merge pull request #19393 from Jojo-Schmitz/symbol-colour
Browse files Browse the repository at this point in the history
Fix GH#19371: Set text line's text color
  • Loading branch information
cbjeukendrup committed Sep 18, 2023
2 parents b4af7bd + d8b0841 commit a13d8b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/engraving/rendering/dev/tlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5130,6 +5130,7 @@ void TLayout::layoutTextLineBaseSegment(TextLineBaseSegment* item, LayoutContext
}
item->text()->setPlacement(PlacementV::ABOVE);
item->text()->setTrack(item->track());
item->text()->setColor(tl->lineColor());
layout(item->text(), ctx);

if ((item->isSingleType() || item->isEndType())) {
Expand All @@ -5141,6 +5142,7 @@ void TLayout::layoutTextLineBaseSegment(TextLineBaseSegment* item, LayoutContext
item->endText()->setFontStyle(tl->endFontStyle());
item->endText()->setPlacement(PlacementV::ABOVE);
item->endText()->setTrack(item->track());
item->endText()->setColor(tl->lineColor());
layout(item->endText(), ctx);
} else {
item->endText()->setXmlText(u"");
Expand Down
2 changes: 2 additions & 0 deletions src/engraving/rendering/stable/tlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4875,6 +4875,7 @@ void TLayout::layoutTextLineBaseSegment(TextLineBaseSegment* item, LayoutContext
}
item->text()->setPlacement(PlacementV::ABOVE);
item->text()->setTrack(item->track());
item->text()->setColor(tl->lineColor());
layout(item->text(), ctx);

if ((item->isSingleType() || item->isEndType())) {
Expand All @@ -4886,6 +4887,7 @@ void TLayout::layoutTextLineBaseSegment(TextLineBaseSegment* item, LayoutContext
item->endText()->setFontStyle(tl->endFontStyle());
item->endText()->setPlacement(PlacementV::ABOVE);
item->endText()->setTrack(item->track());
item->endText()->setColor(tl->lineColor());
layout(item->endText(), ctx);
} else {
item->endText()->setXmlText(u"");
Expand Down
Binary file added vtest/scores/line-colour.mscz
Binary file not shown.

0 comments on commit a13d8b4

Please sign in to comment.