summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cpp/src/Slice/Util.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/src/Slice/Util.cpp b/cpp/src/Slice/Util.cpp
index cdda7b7710f..a74c865ea7c 100644
--- a/cpp/src/Slice/Util.cpp
+++ b/cpp/src/Slice/Util.cpp
@@ -167,6 +167,15 @@ Slice::changeInclude(const string& orig, const vector<string>& includePaths)
}
}
+ if(result == file)
+ {
+ //
+ // Don't return a full path if we couldn't reduce the given path, instead
+ // return the normalized given path.
+ //
+ result = normalizePath(orig);
+ }
+
string::size_type pos;
if((pos = result.rfind('.')) != string::npos)
{