summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/ResourceImpl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/shared/ResourceImpl.cpp b/src/shared/ResourceImpl.cpp
index ac828f58..e35bb7ad 100644
--- a/src/shared/ResourceImpl.cpp
+++ b/src/shared/ResourceImpl.cpp
@@ -137,7 +137,7 @@ ResourceImpl::set_properties(const Properties& p)
for (iterator i = p.begin(); i != p.end(); ++i)
_properties.erase(i->first);
for (iterator i = p.begin(); i != p.end(); ++i)
- set_property(i->first, i->second);
+ add_property(i->first, i->second);
}
@@ -146,8 +146,6 @@ ResourceImpl::add_properties(const Properties& p)
{
typedef Resource::Properties::const_iterator iterator;
for (iterator i = p.begin(); i != p.end(); ++i)
- _properties.erase(i->first);
- for (iterator i = p.begin(); i != p.end(); ++i)
add_property(i->first, i->second);
}