fix PropertyMap::exposeTo: use other_name as new name for property (#40)

This commit is contained in:
llach 2018-04-05 13:47:23 +02:00 committed by Robert Haschke
parent 124979e2a8
commit a82a48bb70

View File

@ -140,7 +140,7 @@ void PropertyMap::exposeTo(PropertyMap& other, const std::set<std::string> &prop
void PropertyMap::exposeTo(PropertyMap& other, const std::string& name, const std::string& other_name)
{
const Property& p = property(name);
other.declare(name, p.type_index_, p.description_, p.default_, p.serialize_);
other.declare(other_name, p.type_index_, p.description_, p.default_, p.serialize_);
}
void PropertyMap::configureInitFrom(Property::SourceId source, const std::set<std::string> &properties)