summaryrefslogtreecommitdiffstats
path: root/src/server/events
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-24 02:27:45 +0000
committerDavid Robillard <d@drobilla.net>2011-09-24 02:27:45 +0000
commit2be10b0b6f2c0f01870208e9d18e5db87e5dfb88 (patch)
treee5bf3a28b59978c6464bb07eac160a458b01cd0d /src/server/events
parent4cc5c82a87cf2316f425a9ea1de0fb29d0c24c8e (diff)
downloadingen-2be10b0b6f2c0f01870208e9d18e5db87e5dfb88.tar.gz
ingen-2be10b0b6f2c0f01870208e9d18e5db87e5dfb88.tar.bz2
ingen-2be10b0b6f2c0f01870208e9d18e5db87e5dfb88.zip
Only store patch canvas coordinates in containing patch.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3483 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/events')
-rw-r--r--src/server/events/SetMetadata.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/events/SetMetadata.cpp b/src/server/events/SetMetadata.cpp
index b01e17cb..1a2d6b17 100644
--- a/src/server/events/SetMetadata.cpp
+++ b/src/server/events/SetMetadata.cpp
@@ -174,12 +174,12 @@ SetMetadata::pre_process()
}
for (Properties::iterator p = _properties.begin(); p != _properties.end(); ++p) {
- const Raul::URI& key = p->first;
- const Raul::Atom& value = p->second;
- SpecialType op = NONE;
+ const Raul::URI& key = p->first;
+ const Resource::Property& value = p->second;
+ SpecialType op = NONE;
if (obj) {
Resource& resource = *obj;
- resource.add_property(key, value);
+ resource.add_property(key, value, value.context());
PortImpl* port = dynamic_cast<PortImpl*>(_object);
if (port) {
@@ -231,7 +231,7 @@ SetMetadata::pre_process()
if (value.type() == Atom::BOOL) {
op = POLYPHONIC;
_blocking = true;
- obj->set_property(key, value.get_bool());
+ obj->set_property(key, value.get_bool(), value.context());
NodeImpl* node = dynamic_cast<NodeImpl*>(obj);
if (node)
node->set_polyphonic(value.get_bool());