Commit 794b4997 authored by Max Lyon's avatar Max Lyon
Browse files

fix swap of property managers

parent 6e81f6c2
......@@ -252,10 +252,8 @@ class PropertyManager {
}
void swap(PropertyManager &rhs) {
std::swap(mesh_, rhs.mesh_);
std::swap(prop_, rhs.prop_);
std::swap(retain_, rhs.retain_);
std::swap(name_, rhs.name_);
// swap the data stored in the properties
Storage::swap(rhs, *this);
}
static bool propertyExists(PolyConnectivity &mesh, const char *propname) {
......@@ -316,7 +314,7 @@ class PropertyManager {
}
else
{
// switch the data stored in the properties
// swap the data stored in the properties
Storage::swap(rhs, *this);
// remove the property from rhs
rhs.mesh_.remove_property(rhs.prop_);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment