diff --git a/src/ifcgeom/IfcGeomIterator.h b/src/ifcgeom/IfcGeomIterator.h index 081a2136cf..7a83878130 100644 --- a/src/ifcgeom/IfcGeomIterator.h +++ b/src/ifcgeom/IfcGeomIterator.h @@ -604,7 +604,7 @@ namespace IfcGeom { // get the parent try { - parent_object = getObject(parent_object->parent_id()); + parent_object = getObject(ret->parent_id()); } catch (const std::exception& e) { Logger::Error(e); hasParent = false;