diff --git a/Canvas.cpp b/Canvas.cpp index fe7af21..832e56a 100644 --- a/Canvas.cpp +++ b/Canvas.cpp @@ -35,7 +35,7 @@ Point* Canvas::findPointAt(QPointF pos, qreal tolerance) if (dist_P2P(p1, pos) <= tolerance) temp = line->p1_ref; - else if (dist_P2P(p2, pos) <= tolerance) + if (dist_P2P(p2, pos) <= tolerance) temp = line->p2_ref; } return temp;