summaryrefslogtreecommitdiffstats
path: root/src/gui/GraphCanvas.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-03-26 11:53:09 +0200
committerDavid Robillard <d@drobilla.net>2017-03-26 17:01:11 +0200
commitd70ddd35cc03b35d3b765079d6039fef7a2a19fa (patch)
tree36056c38e59eb65f0b054551ccd7086f28cc834e /src/gui/GraphCanvas.cpp
parentc69d9d5121b5bcb1e408caa475befcfad3c411c3 (diff)
downloadingen-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.cpp7
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);