summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pre.l b/src/pre.l
index ffb447e..5040a2a 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -111,7 +111,8 @@ DefineDict* getFileDefineDict() {
static void setFileName(const char *name)
{
bool ambig;
- g_yyFileName=name;
+ QFileInfo fi(name);
+ g_yyFileName=convertToQCString(fi.absFilePath());
g_yyFileDef=findFileDef(Doxygen::inputNameDict,g_yyFileName,ambig);
if (g_yyFileDef && g_yyFileDef->isReference()) g_yyFileDef=0;
}