Backed out changeset: 6d0635c37029

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-12-17 16:34:56 +02:00
parent c853b67f63
commit 012c799614

View File

@ -47,9 +47,7 @@ VScaledLine::VScaledLine(const QLineF &line, QGraphicsItem *parent)
void VScaledLine::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
QPen lPen = pen();
const qreal width = ScaleWidth(basicWidth, SceneScale(scene()));
qRound(width) < 1 ? lPen.setWidthF(width) : lPen.setWidth(qRound(width));
lPen.setWidthF(ScaleWidth(basicWidth, SceneScale(scene())));
setPen(lPen);
PaintWithFixItemHighlightSelected<QGraphicsLineItem>(this, painter, option, widget);