Skip to content

Commit

Permalink
Mod/Sketcher: suppress warning
Browse files Browse the repository at this point in the history
Warning was:
src/Mod/Sketcher/Gui/CommandConstraints.cpp|1031 col 28| warning: '&&' within '||' [-Wlogical-op-parentheses]
  • Loading branch information
Fat-Zer authored and wwmayer committed Aug 29, 2015
1 parent cd9488d commit bbbefaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Sketcher/Gui/CommandConstraints.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit bbbefaf

Please sign in to comment.