PIDir fix PICoutManipulator

git-svn-id: svn://db.shs.com.ru/pip@68 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
2015-04-07 09:40:58 +00:00
parent 8e7b44f6be
commit 51da261a56
3 changed files with 4 additions and 2 deletions

View File

@@ -165,6 +165,7 @@ PIString PIDir::relative(const PIString & path) const {
PIDir & PIDir::setDir(const PIString & path) {
path_ = path;
#ifdef WINDOWS
path_.replaceAll("\\", separator);
if (path_.length() > 2)
if (path_.mid(1, 2).contains(":"))
path_.prepend(separator);