We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5359e88 commit 1c2587bCopy full SHA for 1c2587b
1 file changed
src/ifcparse/IfcParse.cpp
@@ -1732,7 +1732,8 @@ void IfcFile::removeEntity(IfcUtil::IfcBaseClass* entity) {
1732
entities_by_ref_t::iterator byref_it = byref.find(name);
1733
if (byref_it != byref.end()) {
1734
std::vector<unsigned>& ids = byref_it->second;
1735
- std::remove(ids.begin(), ids.end(), name);
+ std::vector<unsigned>::const_iterator removed_from = std::remove(ids.begin(), ids.end(), id);
1736
+ ids.erase(removed_from, ids.end());
1737
}
1738
1739
0 commit comments