From 2be10b0b6f2c0f01870208e9d18e5db87e5dfb88 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 24 Sep 2011 02:27:45 +0000 Subject: Only store patch canvas coordinates in containing patch. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3483 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/events/SetMetadata.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/server') 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(_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(obj); if (node) node->set_polyphonic(value.get_bool()); -- cgit v1.2.1