summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-07-31 09:27:24 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-07-31 09:27:24 (GMT)
commitf94a2f3a895f2601226845d16093546757a540e6 (patch)
tree0c1385d29b4e09de59b9f4fa1fdd130e3aa48fa6
parente20debc69515eba71fbe7def1925e6df16224c96 (diff)
downloadDoxygen-f94a2f3a895f2601226845d16093546757a540e6.zip
Doxygen-f94a2f3a895f2601226845d16093546757a540e6.tar.gz
Doxygen-f94a2f3a895f2601226845d16093546757a540e6.tar.bz2
issue #7934: include dependency graph: The boxes of files shows the name of the included file not its own filename
-rw-r--r--src/pre.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pre.l b/src/pre.l
index 28d8f59..18b4615 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -3359,9 +3359,9 @@ void Preprocessor::processFile(const char *fileName,BufStr &input,BufStr &output
{
inc->fromFileDef->addIncludeDependency(inc->toFileDef,inc->includeName,inc->local,inc->imported);
}
- if (inc->toFileDef)
+ if (inc->toFileDef && inc->fromFileDef)
{
- inc->toFileDef->addIncludedByDependency(inc->fromFileDef,inc->includeName,inc->local,inc->imported);
+ inc->toFileDef->addIncludedByDependency(inc->fromFileDef,inc->fromFileDef->docName(),inc->local,inc->imported);
}
}
// add the macro definition for this file to the global map