Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/freestyle/intern/system/StringUtils.cpp')
-rw-r--r--source/blender/freestyle/intern/system/StringUtils.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/system/StringUtils.cpp b/source/blender/freestyle/intern/system/StringUtils.cpp
index 99ec9aed632..5e56dba17bf 100644
--- a/source/blender/freestyle/intern/system/StringUtils.cpp
+++ b/source/blender/freestyle/intern/system/StringUtils.cpp
@@ -39,8 +39,9 @@ void getPathName(const string &path, const string &base, vector<string> &pathnam
for (unsigned int pos = 0, sep = path.find(Config::PATH_SEP, pos); pos < size;
pos = sep + 1, sep = path.find(Config::PATH_SEP, pos)) {
- if (sep == (unsigned)string::npos)
+ if (sep == (unsigned)string::npos) {
sep = size;
+ }
dir = path.substr(pos, sep - pos);
@@ -48,8 +49,9 @@ void getPathName(const string &path, const string &base, vector<string> &pathnam
BLI_cleanup_file(NULL, cleaned);
res = string(cleaned);
- if (!base.empty())
+ if (!base.empty()) {
res += Config::DIR_SEP + base;
+ }
pathnames.push_back(res);
}