summaryrefslogtreecommitdiffhomepage
path: root/spline-widget
diff options
context:
space:
mode:
Diffstat (limited to 'spline-widget')
-rw-r--r--spline-widget/spline.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/spline-widget/spline.cpp b/spline-widget/spline.cpp
index 65e5d4af..8d7159ee 100644
--- a/spline-widget/spline.cpp
+++ b/spline-widget/spline.cpp
@@ -409,10 +409,9 @@ void spline::recompute()
{
QPointF& pt2(list[j]);
const double dist_sq = (pt.x() - pt2.x())*(pt.x() - pt2.x());
- if (dist_sq < .35)
- {
+ static constexpr double overlap = .6;
+ if (dist_sq < overlap * overlap)
return true;
- }
}
return false;
);