summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-11-29 04:39:07 +0000
committerDavid Robillard <d@drobilla.net>2008-11-29 04:39:07 +0000
commit4dbeb95b6560495fbd4f21fe1ebc7082c2ecad34 (patch)
treea579bb063abf6ab8e4762a36dee18af90e6bb439 /src/shared
parent74054abbfdcf8e08dd30ecdfc30df5433cc4e481 (diff)
downloadingen-4dbeb95b6560495fbd4f21fe1ebc7082c2ecad34.tar.gz
ingen-4dbeb95b6560495fbd4f21fe1ebc7082c2ecad34.tar.bz2
ingen-4dbeb95b6560495fbd4f21fe1ebc7082c2ecad34.zip
Fix path name offsetting when pasting to start at 2, not 0.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1826 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/ClashAvoider.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/ClashAvoider.cpp b/src/shared/ClashAvoider.cpp
index b5d99cbd..637872ef 100644
--- a/src/shared/ClashAvoider.cpp
+++ b/src/shared/ClashAvoider.cpp
@@ -88,6 +88,9 @@ ClashAvoider::map_path(const Raul::Path& in)
parent_str = "/";
//cout << "***** PARENT: " << parent_str << endl;
}
+
+ if (offset == 0)
+ offset = 2;
std::stringstream ss;
ss << base_path << "_" << offset;