diff options
-rw-r--r-- | ingen/Node.hpp | 7 | ||||
-rw-r--r-- | src/gui/GraphCanvas.cpp | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/ingen/Node.hpp b/ingen/Node.hpp index ddf7bf82..51b000bf 100644 --- a/ingen/Node.hpp +++ b/ingen/Node.hpp @@ -77,13 +77,6 @@ public: virtual const Raul::Path& path() const = 0; virtual const Raul::Symbol& symbol() const = 0; - Raul::URI base_uri() const { - if (uri()[uri().size() - 1] == '/') { - return uri(); - } - return Raul::URI(uri() + '/'); - } - protected: friend class Store; virtual void set_path(const Raul::Path& p) = 0; diff --git a/src/gui/GraphCanvas.cpp b/src/gui/GraphCanvas.cpp index 37af8a5b..e9224cfc 100644 --- a/src/gui/GraphCanvas.cpp +++ b/src/gui/GraphCanvas.cpp @@ -638,8 +638,13 @@ GraphCanvas::copy_selection() { std::lock_guard<std::mutex> lock(_app.world()->rdf_mutex()); + std::string base_uri = _graph->uri(); + if (base_uri[base_uri.size() - 1] != '/') { + base_uri += '/'; + } + Serialiser serialiser(*_app.world()); - serialiser.start_to_string(_graph->path(), _graph->base_uri()); + serialiser.start_to_string(_graph->path(), base_uri); for_each_selected_node(serialise_node, &serialiser); for_each_selected_edge(serialise_arc, &serialiser); |