summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pre.l b/src/pre.l
index 5d5a79c..0917d3a 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -170,14 +170,15 @@ static Define *isDefined(const char *name)
return 0;
}
-static FILE *checkAndOpenFile(const QCString &absName)
+static FILE *checkAndOpenFile(const QCString &fileName)
{
FILE *f = 0;
//printf("checkAndOpenFile(%s)\n",absName.data());
- QFileInfo fi(absName);
+ QFileInfo fi(fileName);
if (fi.exists() && fi.isFile())
{
- // check include stack for absFileName
+ QCString absName = convertToQCString(fi.absFilePath());
+ // check include stack for absName
QStack<FileState> tmpStack;
g_includeStack.setAutoDelete(FALSE);