From a82a48bb7034bf0de2a5addf113031cc1d5168fb Mon Sep 17 00:00:00 2001 From: llach Date: Thu, 5 Apr 2018 13:47:23 +0200 Subject: [PATCH] fix PropertyMap::exposeTo: use other_name as new name for property (#40) --- core/src/properties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/properties.cpp b/core/src/properties.cpp index db38e7e3..23249e50 100644 --- a/core/src/properties.cpp +++ b/core/src/properties.cpp @@ -140,7 +140,7 @@ void PropertyMap::exposeTo(PropertyMap& other, const std::set &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 &properties)