Fix color of fold line.

This commit is contained in:
Roman Telezhynskyi 2024-04-08 15:58:09 +03:00
parent d3bdd68c46
commit 39d56e34aa

View File

@ -1013,6 +1013,8 @@ void VPGraphicsPiece::PaintFoldLine(QPainter *painter, const VPPiecePtr &piece)
}
fLine.UpdateFoldLineLabel(m_foldLineLabelText);
m_foldLineLabelText->setBrush(QBrush(PieceColor()));
}
else
{
@ -1058,6 +1060,9 @@ void VPGraphicsPiece::PaintFoldLine(QPainter *painter, const VPPiecePtr &piece)
painter->save();
QPen pen = painter->pen();
pen.setWidthF(penWidth * qMin(piece->GetXScale(), piece->GetYScale()));
pen.setColor(PieceColor());
pen.setCapStyle(Qt::RoundCap);
pen.setJoinStyle(Qt::RoundJoin);
painter->setPen(pen);
painter->setBrush(singleLineFont ? Qt::NoBrush : Qt::SolidPattern);
painter->drawPath(m_foldLineLabelPath);