From 983badb1dc8f3ff3b2e47f5312b2ade385de3fb1 Mon Sep 17 00:00:00 2001 From: Jan Arve Saether Date: Fri, 21 Sep 2012 15:05:04 +0200 Subject: Fix a bug in how paths are made canonical and relative Change-Id: Id9b2de9097cab4520882b48a28fccd382c5e076d Reviewed-by: Martin Smith --- src/tools/qdoc/location.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/qdoc') diff --git a/src/tools/qdoc/location.cpp b/src/tools/qdoc/location.cpp index 40c8cc8e73..942fc0f70c 100644 --- a/src/tools/qdoc/location.cpp +++ b/src/tools/qdoc/location.cpp @@ -238,7 +238,7 @@ QString Location::fileName() const */ QString Location::canonicalRelativePath(const QString &path) const { - QDir configFileDir(QFileInfo(filePath()).dir()); + QDir configFileDir(QDir::current()); QDir dir(path); const QString canon = dir.canonicalPath(); return configFileDir.relativeFilePath(canon); -- cgit v1.2.3