From 08f8fc70e17183fa76a1e24104be777b136d3429 Mon Sep 17 00:00:00 2001 From: dismine Date: Mon, 29 Dec 2014 20:19:23 +0200 Subject: [PATCH] Same lenght to point label for draw and detail. --HG-- branch : develop --- src/app/tools/nodeDetails/vnodepoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/tools/nodeDetails/vnodepoint.cpp b/src/app/tools/nodeDetails/vnodepoint.cpp index baaea5ed0..19a930f5c 100644 --- a/src/app/tools/nodeDetails/vnodepoint.cpp +++ b/src/app/tools/nodeDetails/vnodepoint.cpp @@ -293,7 +293,7 @@ void VNodePoint::RefreshLine() 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 (QLineF(p1, pRec - scenePos()).length() <= qApp->toPixel(4)) + if (QLineF(p1, pRec - scenePos()).length() <= qApp->toPixel(4, Unit::Mm)) { lineName->setVisible(false); }