Refactoring.

This commit is contained in:
Roman Telezhynskyi 2020-11-27 10:57:11 +02:00
parent 8877ce4630
commit c4234b3050

View File

@ -98,16 +98,16 @@ void VisToolPointFromArcAndTangent::FindRays(const QPointF &p, const VArc *arc)
const qreal radius = arc->GetRadius(); const qreal radius = arc->GetRadius();
const int res = VGObject::ContactPoints (p, center, radius, p1, p2); 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) switch(res)
{ {
case 2: case 2:
{ {
QLineF r1Arc(center, p1);
r1Arc.setLength(radius+10);
QLineF r2Arc(center, p2);
r2Arc.setLength(radius+10);
int localRes = 0; int localRes = 0;
bool flagP1 = false; bool flagP1 = false;