Commit cbe3f14c authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Win32 fix of absolute file detection.

parent e9b61b49
......@@ -440,7 +440,9 @@ UMLPackage* handleControlledUnit(PetalNode *node, const QString& name,
file_name = envVar + file_name.mid(firstSlash);
if (!file_name.startsWith("/")) {
QFileInfo fi(file_name);
if (!fi.isAbsolute()) {
// Must have an absolute path by now.
// If we don't then use the directory of the .mdl file.
file_name = Import_Rose::mdlPath() + file_name;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment