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();
|
QRectF nameRec = namePoint->sceneBoundingRect();
|
||||||
QPointF p1, p2;
|
QPointF p1, p2;
|
||||||
VGObject::LineIntersectCircle(QPointF(), radius/factor, QLineF(QPointF(), nameRec.center() - scenePos()), p1,
|
VGObject::LineIntersectCircle(QPointF(), radius, QLineF(QPointF(), nameRec.center() - scenePos()), p1, p2);
|
||||||
p2);
|
|
||||||
QPointF pRec = VGObject::LineIntersectRect(nameRec, QLineF(scenePos(), nameRec.center()));
|
QPointF pRec = VGObject::LineIntersectRect(nameRec, QLineF(scenePos(), nameRec.center()));
|
||||||
lineName->setLine(QLineF(p1, pRec - scenePos()));
|
lineName->setLine(QLineF(p1, pRec - scenePos()));
|
||||||
if (currentColor == Qt::gray)
|
if (currentColor == Qt::gray)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user