Sketcher: replace or keyword with || as it's not supported by all compilers
This commit is contained in:
@@ -5737,7 +5737,7 @@ void CmdSketcherConstrainRadiam::activated(int iMsg)
|
||||
if(!commandopened)
|
||||
openCommand(QT_TRANSLATE_NOOP("Command", "Add radiam constraint"));
|
||||
for (std::vector< std::pair<int, double> >::iterator it = geoIdRadiamMap.begin(); it != geoIdRadiamMap.end(); ++it) {
|
||||
if (Obj->getGeometry(it->first)->getTypeId() == Part::GeomArcOfCircle::getClassTypeId() or isBsplinePole(Obj, it->first)) {
|
||||
if (Obj->getGeometry(it->first)->getTypeId() == Part::GeomArcOfCircle::getClassTypeId() || isBsplinePole(Obj, it->first)) {
|
||||
if(nonpoles) {
|
||||
Gui::cmdAppObjectArgs(Obj, "addConstraint(Sketcher.Constraint('Radius',%d,%f)) ", it->first, it->second);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user