PIDir fix PICoutManipulator
git-svn-id: svn://db.shs.com.ru/pip@68 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -32,7 +32,7 @@ class PIP_EXPORT PIDiagnostics: public PITimer
|
||||
friend class PIConnection;
|
||||
public:
|
||||
|
||||
//! Constructs an empty diagnostics and if "strat_" start it
|
||||
//! Constructs an empty diagnostics and if "start_" start it
|
||||
PIDiagnostics(bool start_ = true);
|
||||
|
||||
virtual ~PIDiagnostics() {;}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user