From 4dbeb95b6560495fbd4f21fe1ebc7082c2ecad34 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 29 Nov 2008 04:39:07 +0000 Subject: 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 --- src/shared/ClashAvoider.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.1