Fixed issue #415. Line appears between the point and mark in the detail mode

--HG--
branch : feature
This commit is contained in:
Valentina Zhuravska 2015-12-07 07:48:51 +02:00
parent 0e60b20ace
commit d057d336f7

View file

@ -278,6 +278,9 @@ void VNodePoint::RefreshPointGeometry(const VPointF &point)
* @brief RefreshLine refresh label line on scene.
*/
void VNodePoint::RefreshLine()
{ QRectF nRec = namePoint->sceneBoundingRect();
nRec.translate(- scenePos());
if (this->rect().intersects(nRec) == false)
{
QRectF nameRec = namePoint->sceneBoundingRect();
QPointF p1, p2;
@ -293,3 +296,8 @@ void VNodePoint::RefreshLine()
lineName->setVisible(true);
}
}
else
{
lineName->setVisible(false);
}
}