diff --git a/src/Mod/Sketcher/App/Sketch.cpp b/src/Mod/Sketcher/App/Sketch.cpp index 06547a6e2a..f079501703 100644 --- a/src/Mod/Sketcher/App/Sketch.cpp +++ b/src/Mod/Sketcher/App/Sketch.cpp @@ -1737,7 +1737,9 @@ int Sketch::addConstraint(const Constraint *constraint) auto linegeoid = checkGeoId(constraint->Second); - rtn = addTangentLineAtBSplineKnotConstraint(linegeoid, bsplinegeoid, knotgeoId); + if (Geoms[linegeoid].type == Line) + rtn = addTangentLineAtBSplineKnotConstraint( + linegeoid, bsplinegeoid, knotgeoId); } } }