mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
Fix dangling reference in PropagateProperties()
Other GetProperties() calls push_back new elements to global_shape_properties -> memory reallocation
This commit is contained in:
parent
26d12898a6
commit
9f2daabc0f
@ -537,7 +537,7 @@ namespace netgen
|
||||
have_identifications |= OCCGeometry::HaveIdentifications(s);
|
||||
if(!OCCGeometry::HaveProperties(s))
|
||||
continue;
|
||||
auto & prop = OCCGeometry::GetProperties(s);
|
||||
auto prop = OCCGeometry::GetProperties(s);
|
||||
for (auto mods : builder.Modified(s))
|
||||
OCCGeometry::GetProperties(mods).Merge(prop);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user