diff --git a/src/ifcgeom/Iterator.h b/src/ifcgeom/Iterator.h index 5a2a4dfca0..fc7f46ad86 100644 --- a/src/ifcgeom/Iterator.h +++ b/src/ifcgeom/Iterator.h @@ -891,7 +891,7 @@ namespace IfcGeom { } } - if (!settings_.get().get() == ifcopenshell::geometry::settings::NATIVE) { + if (settings_.get().get() != ifcopenshell::geometry::settings::NATIVE) { for (auto& p : all_processed_native_elements_) { delete p; }