summaryrefslogtreecommitdiffstats
path: root/raul/Path.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-01-02 01:57:01 +0000
committerDavid Robillard <d@drobilla.net>2007-01-02 01:57:01 +0000
commit1a2962681ff62598f6cbe9aed9c5d4c69c0020a6 (patch)
tree09a18d7922653c420b24bcdc9153c721660583ec /raul/Path.h
parentd1f1ec4015acee8afce7d72056427a22f589ff4a (diff)
downloadraul-1a2962681ff62598f6cbe9aed9c5d4c69c0020a6.tar.gz
raul-1a2962681ff62598f6cbe9aed9c5d4c69c0020a6.tar.bz2
raul-1a2962681ff62598f6cbe9aed9c5d4c69c0020a6.zip
Fixed path nameify/pathify bug when brackets followed spaces in input.
git-svn-id: http://svn.drobilla.net/lad/raul@228 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul/Path.h')
-rw-r--r--raul/Path.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/raul/Path.h b/raul/Path.h
index e79e111..c19767d 100644
--- a/raul/Path.h
+++ b/raul/Path.h
@@ -169,6 +169,7 @@ public:
if (str[i] == ' ' || str[i] == '_') {
str[i+1] = std::toupper(str[i+1]); // capitalize next char
str = str.substr(0, i) + str.substr(i+1); // chop space/underscore
+ --i;
} else if (str[i] == '[' || str[i] == '{') {
str[i] = '(';
} else if (str[i] == ']' || str[i] == '}') {