From 468946bcde23e7e1e39714b2c5a7e786108fb5ba Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Sat, 26 May 2018 23:33:36 +0200 Subject: [PATCH] Sketcher: Fix crash on applying dimensional constraint to external element --- src/Mod/Sketcher/App/Sketch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/App/Sketch.cpp b/src/Mod/Sketcher/App/Sketch.cpp index b58faf8031..4002c86931 100644 --- a/src/Mod/Sketcher/App/Sketch.cpp +++ b/src/Mod/Sketcher/App/Sketch.cpp @@ -1410,7 +1410,7 @@ void Sketch::getBlockedGeometry(std::vector & blockedGeometry, // solver behaviour // further, any constraint taking only one element, which is blocked is also unenforceable - if((*it)->Second==Constraint::GeoUndef && (*it)->Third==Constraint::GeoUndef) { + if((*it)->Second==Constraint::GeoUndef && (*it)->Third==Constraint::GeoUndef && (*it)->First>=0 ) { if (blockedGeometry[(*it)->First] && i < geo2blockingconstraintindex[(*it)->First]) { unenforceableConstraints[i]= true; }