From dfb414f7e636892d79aba9fe1f92f463d4c2b0f7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 19 Feb 2011 07:57:24 +0000 Subject: Partially working copy/paste. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2996 a436a847-0d15-0410-975c-d299462d15a1 --- src/shared/ClashAvoider.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/shared') diff --git a/src/shared/ClashAvoider.cpp b/src/shared/ClashAvoider.cpp index 36244303..9009fe96 100644 --- a/src/shared/ClashAvoider.cpp +++ b/src/shared/ClashAvoider.cpp @@ -108,7 +108,9 @@ ClashAvoider::map_path(const Raul::Path& in) std::stringstream ss; ss << base_path << "_" << offset; if (!exists(ss.str())) { - const string name = (base_path.length() > 1) ? base_path.symbol() : "_"; + string name = base_path.symbol(); + if (name == "") + name = "_"; string str = ss.str(); InsertRecord i = _symbol_map.insert(make_pair(in, str)); debug << "HIT: offset = " << offset << ", str = " << str << endl; @@ -148,7 +150,7 @@ ClashAvoider::put(const Raul::URI& path, const Shared::Resource::Properties& properties, Resource::Graph ctx) { - _target.put(map_uri(path), properties); + _target.put(map_uri(path), properties, ctx); } -- cgit v1.2.1