diff --git a/src/Mod/Sketcher/Gui/CommandConstraints.cpp b/src/Mod/Sketcher/Gui/CommandConstraints.cpp index 8b1159116..e9a4e6770 100644 --- a/src/Mod/Sketcher/Gui/CommandConstraints.cpp +++ b/src/Mod/Sketcher/Gui/CommandConstraints.cpp @@ -1168,8 +1168,8 @@ void CmdSketcherConstrainPointOnObject::activated(int iMsg) points.push_back(id); } - if (points.size() == 1 && curves.size() >= 1 || - points.size() >= 1 && curves.size() == 1) { + if ((points.size() == 1 && curves.size() >= 1) || + (points.size() >= 1 && curves.size() == 1)) { openCommand("add point on object constraint"); int cnt = 0;