From a0108c19c4704316a02c85676af349acdda29d72 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 19 Oct 2009 04:07:02 +0000 Subject: Fix set/PUT with multiple properties of the same predicate. Actually set port value when PUT of ingen:value occurs (fix ticket #410). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2198 a436a847-0d15-0410-975c-d299462d15a1 --- src/shared/ResourceImpl.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/shared') 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); } @@ -145,8 +145,6 @@ void 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); } -- cgit v1.2.1