From c92dcea0eb07aa3edb1f419f6dc7a13f0e51152d Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Sun, 17 Dec 2023 16:03:18 +0100 Subject: [PATCH] Sketcher: Move lint comment to right position --- src/Mod/Sketcher/Gui/EditModeConstraintCoinManager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Mod/Sketcher/Gui/EditModeConstraintCoinManager.cpp b/src/Mod/Sketcher/Gui/EditModeConstraintCoinManager.cpp index e7ec72d517..637e07d89a 100644 --- a/src/Mod/Sketcher/Gui/EditModeConstraintCoinManager.cpp +++ b/src/Mod/Sketcher/Gui/EditModeConstraintCoinManager.cpp @@ -826,13 +826,14 @@ Restart: auto geo1 = geolistfacade.getGeometryFromGeoId(Constr->First); auto geo2 = geolistfacade.getGeometryFromGeoId(Constr->Second); if (isLineSegment(*geo2)) { + // point to line distance + // NOLINTNEXTLINE auto lineSeg = static_cast(geo2); Base::Vector3d l2p1 = lineSeg->getStartPoint(); Base::Vector3d l2p2 = lineSeg->getEndPoint(); if (Constr->SecondPos != Sketcher::PointPos::none) { - // point to line distance - // NOLINTNEXTLINE + // calculate the projection of p1 onto line2 pnt2.ProjectToLine(pnt1 - l2p1, l2p2 - l2p1); pnt2 += pnt1;