diff --exclude '*~' -r -u doxygen-1.7.1/src/qhp.cpp doxygen-1.7.1-patched/src/qhp.cpp
--- doxygen-1.7.1/src/qhp.cpp   2010-01-01 11:53:00.000000000 +0000
+++ doxygen-1.7.1-patched/src/qhp.cpp   2010-07-06 12:37:29.696564544 +0100
@@ -186,7 +186,6 @@
     m_toc.close("section");
   }
 }
-
 void Qhp::addIndexItem(Definition *context,MemberDef *md,
                        const char *anc,const char *word)
 {
@@ -209,7 +208,7 @@
     QCString level1  = context->name();
     QCString level2  = word ? QCString(word) : md->name();
     QCString contRef = separateMemberPages ? cfname : cfiname;
-    QCString anchor  = anc;
+    QCString anchor  = md->anchor();
 
     QCString ref;
