From 25b5977962449a734721c667b5347831e8aaa109 Mon Sep 17 00:00:00 2001 From: ruevs Date: Tue, 28 Feb 2023 22:49:36 +0200 Subject: [PATCH] Fix a crash when constraining a line segment symmetric This was a regression Introduced in 3d3d5c7. Fixes #1345 --- src/constraint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constraint.cpp b/src/constraint.cpp index f31d0d4d..66d20d21 100644 --- a/src/constraint.cpp +++ b/src/constraint.cpp @@ -580,8 +580,8 @@ void Constraint::MenuConstrain(Command id) { Entity::NO_ENTITY); DeleteAllConstraintsFor(Type::VERTICAL, (gs.entity[0]), Entity::NO_ENTITY); - newcons.push_back(c); AddConstraint(&c, /*rememberForUndo=*/false); + newcons.push_back(c); break; } }