Adjust line to control point according to scale. ref #842.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-05-08 12:04:12 +03:00
parent 4b859a897e
commit b1d33aa2c6

View File

@ -98,6 +98,12 @@ void VControlPointSpline::paint(QPainter *painter, const QStyleOptionGraphicsIte
lPen.setColor(CorrectColor(controlLine, Qt::black));
controlLine->setPen(lPen);
QPointF p1, p2;
VGObject::LineIntersectCircle(QPointF(), ScaledRadius(SceneScale(scene())),
QLineF( QPointF(), controlLine->line().p1()), p1, p2);
QLineF line(controlLine->line().p1(), p1);
controlLine->setLine(line);
VScenePoint::paint(painter, option, widget);
}