From 93fba2a77ff05385fcd2497a8ace6aba7243de34 Mon Sep 17 00:00:00 2001 From: Florian Foinant-Willig Date: Sun, 14 May 2023 15:20:59 +0200 Subject: [PATCH] Sketch: Fix Point to Line constraint display --- src/Mod/Sketcher/Gui/EditModeConstraintCoinManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/Gui/EditModeConstraintCoinManager.cpp b/src/Mod/Sketcher/Gui/EditModeConstraintCoinManager.cpp index e9af7e5546..fe46cae776 100644 --- a/src/Mod/Sketcher/Gui/EditModeConstraintCoinManager.cpp +++ b/src/Mod/Sketcher/Gui/EditModeConstraintCoinManager.cpp @@ -661,7 +661,7 @@ Restart: const Part::Geometry *geo = geolistfacade.getGeometryFromGeoId(Constr->Second); if (geo->getTypeId() == Part::GeomLineSegment::getClassTypeId()) { - if (Constr->SecondPos != Sketcher::PointPos::none) { // point to line distance + if (Constr->FirstPos != Sketcher::PointPos::none) { // point to line distance const Part::GeomLineSegment *lineSeg = static_cast(geo); Base::Vector3d l2p1 = lineSeg->getStartPoint(); Base::Vector3d l2p2 = lineSeg->getEndPoint();