diff options
author | David Robillard <d@drobilla.net> | 2017-03-26 11:53:09 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-03-26 17:01:11 +0200 |
commit | d70ddd35cc03b35d3b765079d6039fef7a2a19fa (patch) | |
tree | 36056c38e59eb65f0b054551ccd7086f28cc834e /src/gui/GraphCanvas.cpp | |
parent | c69d9d5121b5bcb1e408caa475befcfad3c411c3 (diff) | |
download | ingen-d70ddd35cc03b35d3b765079d6039fef7a2a19fa.tar.gz ingen-d70ddd35cc03b35d3b765079d6039fef7a2a19fa.tar.bz2 ingen-d70ddd35cc03b35d3b765079d6039fef7a2a19fa.zip |
Remove Node::base_uri() method
Diffstat (limited to 'src/gui/GraphCanvas.cpp')
-rw-r--r-- | src/gui/GraphCanvas.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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); |