diff --git a/src/doxygen.cpp b/src/doxygen.cpp index eb72a00dede..647b5c855c8 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -1745,6 +1745,13 @@ static void buildNamespaceList(EntryNav *rootNav) { nd->setLanguage(root->lang); } + if (rootNav->tagInfo()==0) // if we found the namespace in a tag file + // and also in a project file, then remove + // the tag file reference + { + nd->setReference(""); + nd->setFileName(fullName); + } // file definition containing the namespace nd FileDef *fd=rootNav->fileDef(); diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp index d08e7353825..a2341c7a379 100644 --- a/src/namespacedef.cpp +++ b/src/namespacedef.cpp @@ -46,8 +46,7 @@ NamespaceDef::NamespaceDef(const char *df,int dl,int dc, } else { - fileName="namespace"; - fileName+=name; + setFileName(name); } classSDict = new ClassSDict(17); namespaceSDict = new NamespaceSDict(17); @@ -89,6 +88,12 @@ NamespaceDef::~NamespaceDef() delete m_allMembersDict; } +void NamespaceDef::setFileName(const QCString &fn) +{ + fileName="namespace"; + fileName+=fn; +} + void NamespaceDef::distributeMemberGroupDocumentation() { MemberGroupSDict::Iterator mgli(*memberGroupSDict); diff --git a/src/namespacedef.h b/src/namespacedef.h index 2d23d239024..9b734eb668f 100644 --- a/src/namespacedef.h +++ b/src/namespacedef.h @@ -83,6 +83,7 @@ class NamespaceDef : public Definition virtual Definition *findInnerCompound(const char *name); void addInnerCompound(Definition *d); void addListReferences(); + void setFileName(const QCString &fn); bool subGrouping() const { return m_subGrouping; }