--- src/util.cpp	2013-01-25 16:04:43.434507413 +0100
+++ src/util.cpp.fixed	2013-01-25 16:08:06.365507980 +0100
@@ -6166,9 +6166,10 @@
     if (tagInfo)
     {
       pd->setReference(tagInfo->tagName);
+      pd->setFileName(tagInfo->fileName);
     }
-
-    pd->setFileName(convertNameToFile(pd->name(),FALSE,TRUE));
+    else
+      pd->setFileName(convertNameToFile(pd->name(),FALSE,TRUE));
 
     //printf("Appending page `%s'\n",baseName.data());
     Doxygen::pageSDict->append(baseName,pd);
