diff --git a/src/Mod/Part/Gui/DlgBooleanOperation.cpp b/src/Mod/Part/Gui/DlgBooleanOperation.cpp index 0c21f13738ef..9df2d389944a 100644 --- a/src/Mod/Part/Gui/DlgBooleanOperation.cpp +++ b/src/Mod/Part/Gui/DlgBooleanOperation.cpp @@ -194,7 +194,7 @@ bool DlgBooleanOperation::hasSolids(const App::DocumentObject* obj) const if (obj->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId())) { const TopoDS_Shape& shape = static_cast(obj)->Shape.getValue(); TopExp_Explorer anExp (shape, TopAbs_SOLID); - for (; anExp.More(); anExp.Next()) { + if (anExp.More()) { return true; } }