mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-14 10:08:32 +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);
|
have_identifications |= OCCGeometry::HaveIdentifications(s);
|
||||||
if(!OCCGeometry::HaveProperties(s))
|
if(!OCCGeometry::HaveProperties(s))
|
||||||
continue;
|
continue;
|
||||||
auto & prop = OCCGeometry::GetProperties(s);
|
auto prop = OCCGeometry::GetProperties(s);
|
||||||
for (auto mods : builder.Modified(s))
|
for (auto mods : builder.Modified(s))
|
||||||
OCCGeometry::GetProperties(mods).Merge(prop);
|
OCCGeometry::GetProperties(mods).Merge(prop);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user