summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/pre.l')
-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