summaryrefslogtreecommitdiffstats
path: root/src/gui/GraphCanvas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/GraphCanvas.cpp')
-rw-r--r--src/gui/GraphCanvas.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/GraphCanvas.cpp b/src/gui/GraphCanvas.cpp
index fa5ed149..73253ae0 100644
--- a/src/gui/GraphCanvas.cpp
+++ b/src/gui/GraphCanvas.cpp
@@ -730,9 +730,10 @@ GraphCanvas::paste()
}
const SPtr<Node> node = c.second;
- const Raul::Path& old_path = copy_root.child(node->path());
+ const Raul::Path& old_path = copy_root.child(uri_to_path(node->uri()));
const Raul::URI& old_uri = path_to_uri(old_path);
- const Raul::Path& new_path = avoider.map_path(parent.child(node->path()));
+ const Raul::Path& new_path = avoider.map_path(
+ parent.child(uri_to_path(node->uri())));
Properties props{{uris.lv2_prototype,
_app.forge().make_urid(old_uri)}};