diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2015-01-10 13:54:21 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2015-01-10 13:54:21 (GMT) |
commit | 8de0cd2b5a73e25596aa7b229d30a9ca0d7fbffb (patch) | |
tree | c2a926512a83744e4b5fbec36069280c79f0487c | |
parent | d16b76ad7111de5c5e26bc5ed7be92691f455c39 (diff) | |
parent | ed178335e8c123b58c4fee24766bceae0fc80aa2 (diff) | |
download | Doxygen-8de0cd2b5a73e25596aa7b229d30a9ca0d7fbffb.zip Doxygen-8de0cd2b5a73e25596aa7b229d30a9ca0d7fbffb.tar.gz Doxygen-8de0cd2b5a73e25596aa7b229d30a9ca0d7fbffb.tar.bz2 |
Merge pull request #289 from albert-github/feature/bug_snippet
Enable relative paths referenced source files
-rw-r--r-- | src/docparser.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp index 5208bbe..c8e6bf6 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -1743,6 +1743,15 @@ static int internalValidatingParseDoc(DocNode *parent,QList<DocNode> &children, static void readTextFileByName(const QCString &file,QCString &text) { + if (portable_isAbsolutePath(file.data())) + { + QFileInfo fi(file); + if (fi.exists()) + { + text = fileToString(file,Config_getBool("FILTER_SOURCE_FILES")); + return; + } + } QStrList &examplePathList = Config_getList("EXAMPLE_PATH"); char *s=examplePathList.first(); while (s) |