From c4234b305093eff8ef8b4ac1ea0246e6cfae825b Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 27 Nov 2020 10:57:11 +0200 Subject: [PATCH] Refactoring. --- .../line/vistoolpointfromarcandtangent.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libs/vtools/visualization/line/vistoolpointfromarcandtangent.cpp b/src/libs/vtools/visualization/line/vistoolpointfromarcandtangent.cpp index 7ddce1671..c6c159ce1 100644 --- a/src/libs/vtools/visualization/line/vistoolpointfromarcandtangent.cpp +++ b/src/libs/vtools/visualization/line/vistoolpointfromarcandtangent.cpp @@ -98,16 +98,16 @@ void VisToolPointFromArcAndTangent::FindRays(const QPointF &p, const VArc *arc) const qreal radius = arc->GetRadius(); const int res = VGObject::ContactPoints (p, center, radius, p1, p2); - QLineF r1Arc(center, p1); - r1Arc.setLength(radius+10); - - QLineF r2Arc(center, p2); - r2Arc.setLength(radius+10); - switch(res) { case 2: { + QLineF r1Arc(center, p1); + r1Arc.setLength(radius+10); + + QLineF r2Arc(center, p2); + r2Arc.setLength(radius+10); + int localRes = 0; bool flagP1 = false;