Refactoring.
This commit is contained in:
parent
bbf7e24aa8
commit
6d471c5a55
|
@ -269,11 +269,9 @@ auto VAbstractCurve::ClosestPoint(QPointF scenePoint) const -> QPointF
|
|||
{
|
||||
return candidatePoint;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
auto VAbstractCurve::GetPath() const -> QPainterPath
|
||||
|
|
|
@ -1160,7 +1160,7 @@ auto VPiecePath::CurveSeamAllowanceSegment(const VContainer *data, const QVector
|
|||
const VSAPoint end = EndSegment(data, nodes, i);
|
||||
|
||||
const QVector<QPointF> points = curve->GetSegmentPoints(begin, end, reverse, piece);
|
||||
if (points.isEmpty())
|
||||
if (points.size() < 2)
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user