[Sketcher] Fix a check during tangent autoconstraint

This commit is contained in:
Ajinkya Dahale
2024-08-26 11:02:43 +05:30
committed by Yorik van Havre
parent 34030c9ece
commit 84cb77f0d7

View File

@@ -857,8 +857,9 @@ protected:
(*resultcoincident)->Type = Sketcher::Tangent;
}
else if (resultpointonobject != AutoConstraints.end()
&& ((*resultcoincident)->FirstPos == Sketcher::PointPos::start
|| (*resultcoincident)->FirstPos == Sketcher::PointPos::end)) {
&& ((*resultpointonobject)->FirstPos == Sketcher::PointPos::start
|| (*resultpointonobject)->FirstPos
== Sketcher::PointPos::end)) {
// endpoint-to-edge tangency
(*resultpointonobject)->Type = Sketcher::Tangent;
}