mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
Initialize header after storage
This commit is contained in:
@@ -1442,7 +1442,6 @@ IfcFile::IfcFile(const IfcParse::schema_definition* schema, filetype ty, const s
|
|||||||
: schema_(schema)
|
: schema_(schema)
|
||||||
, ifcroot_type_(schema_->declaration_by_name("IfcRoot"))
|
, ifcroot_type_(schema_->declaration_by_name("IfcRoot"))
|
||||||
, max_id_(0)
|
, max_id_(0)
|
||||||
, _header(this)
|
|
||||||
{
|
{
|
||||||
if (ty == FT_AUTODETECT) {
|
if (ty == FT_AUTODETECT) {
|
||||||
ty = guess_file_type(path);
|
ty = guess_file_type(path);
|
||||||
@@ -1466,6 +1465,7 @@ IfcFile::IfcFile(const IfcParse::schema_definition* schema, filetype ty, const s
|
|||||||
} else {
|
} else {
|
||||||
throw std::runtime_error("Unsupported file format");
|
throw std::runtime_error("Unsupported file format");
|
||||||
}
|
}
|
||||||
|
_header = IfcSpfHeader(this);
|
||||||
setDefaultHeaderValues();
|
setDefaultHeaderValues();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user