From d035a293b7e4555597bcf5940e8a98f278a2143e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 29 Jul 2016 22:20:01 -0400 Subject: Use more terse patch:Put for canvas positions Fix the semantics of PUT events for existing objects to match the documentation. --- src/gui/NodeModule.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/gui/NodeModule.cpp') diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index 04a46a9f..746083fb 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -420,15 +420,8 @@ NodeModule::store_location(double ax, double ay) if (x != _block->get_property(uris.ingen_canvasX) || y != _block->get_property(uris.ingen_canvasY)) { - Resource::Properties remove; - remove.insert(make_pair(uris.ingen_canvasX, - Resource::Property(uris.patch_wildcard))); - remove.insert(make_pair(uris.ingen_canvasY, - Resource::Property(uris.patch_wildcard))); - Resource::Properties add; - add.insert(make_pair(uris.ingen_canvasX, x)); - add.insert(make_pair(uris.ingen_canvasY, y)); - app().interface()->delta(_block->uri(), remove, add); + app().interface()->put(_block->uri(), {{uris.ingen_canvasX, x}, + {uris.ingen_canvasY, y}}); } } -- cgit v1.2.1