From be79d3712da5d8bf454f4cf23c8573ccb788b370 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 10 Sep 2025 11:37:17 +0200 Subject: [PATCH] Initialize header after storage --- src/ifcparse/IfcParse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcparse/IfcParse.cpp b/src/ifcparse/IfcParse.cpp index 1f06531afe..50e5b92426 100644 --- a/src/ifcparse/IfcParse.cpp +++ b/src/ifcparse/IfcParse.cpp @@ -1442,7 +1442,6 @@ IfcFile::IfcFile(const IfcParse::schema_definition* schema, filetype ty, const s : schema_(schema) , ifcroot_type_(schema_->declaration_by_name("IfcRoot")) , max_id_(0) - , _header(this) { if (ty == FT_AUTODETECT) { ty = guess_file_type(path); @@ -1466,6 +1465,7 @@ IfcFile::IfcFile(const IfcParse::schema_definition* schema, filetype ty, const s } else { throw std::runtime_error("Unsupported file format"); } + _header = IfcSpfHeader(this); setDefaultHeaderValues(); }