Fix for line to label.
--HG-- branch : develop
This commit is contained in:
parent
141ec30b8c
commit
ccd06caef9
|
@ -260,8 +260,7 @@ void VToolPoint::RefreshLine()
|
|||
{
|
||||
QRectF nameRec = namePoint->sceneBoundingRect();
|
||||
QPointF p1, p2;
|
||||
VGObject::LineIntersectCircle(QPointF(), radius/factor, QLineF(QPointF(), nameRec.center() - scenePos()), p1,
|
||||
p2);
|
||||
VGObject::LineIntersectCircle(QPointF(), radius, QLineF(QPointF(), nameRec.center() - scenePos()), p1, p2);
|
||||
QPointF pRec = VGObject::LineIntersectRect(nameRec, QLineF(scenePos(), nameRec.center()));
|
||||
lineName->setLine(QLineF(p1, pRec - scenePos()));
|
||||
if (currentColor == Qt::gray)
|
||||
|
|
Loading…
Reference in New Issue
Block a user