diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index c43ef106ec..df06d41940 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -4387,8 +4387,9 @@ int SketchObject::addSymmetric(const std::vector& geoIdList, continue; } if (!refIsAxisAligned - && (constr->Type == Sketcher::DistanceX || constr->Type == Sketcher::DistanceY - || constr->Type == Sketcher::Vertical + && (constr->Type == Sketcher::DistanceX // + || constr->Type == Sketcher::DistanceY // + || constr->Type == Sketcher::Vertical // || constr->Type == Sketcher::Horizontal)) { // this includes all non-directional single GeoId constraints, as radius, // diameter, weight,... @@ -4425,11 +4426,14 @@ int SketchObject::addSymmetric(const std::vector& geoIdList, }; if (constr->Third == GeoEnum::GeoUndef) { - if (!(constr->Type == Sketcher::Coincident - || constr->Type == Sketcher::Perpendicular - || constr->Type == Sketcher::Parallel || constr->Type == Sketcher::Tangent - || constr->Type == Sketcher::Distance || constr->Type == Sketcher::Equal - || constr->Type == Sketcher::Angle || constr->Type == Sketcher::PointOnObject + if (!(constr->Type == Sketcher::Coincident // + || constr->Type == Sketcher::Perpendicular // + || constr->Type == Sketcher::Parallel // + || constr->Type == Sketcher::Tangent // + || constr->Type == Sketcher::Distance // + || constr->Type == Sketcher::Equal // + || constr->Type == Sketcher::Angle // + || constr->Type == Sketcher::PointOnObject // || constr->Type == Sketcher::InternalAlignment)) { continue; } @@ -4529,8 +4533,10 @@ int SketchObject::addSymmetric(const std::vector& geoIdList, createEqualityConstr(geoId1, geoId2); createSymConstr(geoId1, geoId2, PointPos::mid, PointPos::mid); } - else if (geo->is() || geo->is() - || geo->is() || geo->is()) { + else if (geo->is() // + || geo->is() // + || geo->is() // + || geo->is()) { createEqualityConstr(geoId1, geoId2); createSymConstr(geoId1, geoId2,