summaryrefslogtreecommitdiffstats
path: root/src/shared/ResourceImpl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-24 06:04:49 +0000
committerDavid Robillard <d@drobilla.net>2011-09-24 06:04:49 +0000
commit1b3c1cdf0b70f6c10538c139819f619346c40753 (patch)
tree7c3ef12cc2eb595a767e697a8f827f838abacd8b /src/shared/ResourceImpl.cpp
parente4a59fd6605639b6f8d60e870866a551592b18b0 (diff)
downloadingen-1b3c1cdf0b70f6c10538c139819f619346c40753.tar.gz
ingen-1b3c1cdf0b70f6c10538c139819f619346c40753.tar.bz2
ingen-1b3c1cdf0b70f6c10538c139819f619346c40753.zip
Fix set_property so it doesn't create multiple values in a context.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3492 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/shared/ResourceImpl.cpp')
-rw-r--r--src/shared/ResourceImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/ResourceImpl.cpp b/src/shared/ResourceImpl.cpp
index e6f4ba70..d2b94294 100644
--- a/src/shared/ResourceImpl.cpp
+++ b/src/shared/ResourceImpl.cpp
@@ -50,7 +50,7 @@ ResourceImpl::set_property(const Raul::URI& uri, const Raul::Atom& value,
(i != _properties.end()) && (i->first == uri);) {
Properties::iterator next = i;
++next;
- if (i->second.context() == ctx && i->second == value) {
+ if (i->second.context() == ctx) {
_properties.erase(i);
}
i = next;