mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Fix segfault thanks to aothms.
This commit is contained in:
committed by
Thomas Krijnen
parent
01bc29c5b2
commit
ebe5460a9f
@@ -2110,7 +2110,11 @@ void IfcFile::process_deletion_() {
|
||||
}
|
||||
}
|
||||
{
|
||||
byref_excl.erase(name);
|
||||
auto byref_it = byref_excl.find(name);
|
||||
if (byref_it != byref_excl.end()) {
|
||||
auto& ids = byref_it->second;
|
||||
ids.erase(std::remove(ids.begin(), ids.end(), id), ids.end());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user