diff options
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r-- | src/docparser.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp index 4e316a8..fa468c0 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -1016,7 +1016,9 @@ static int handleAHref(DocNode *parent,DocNodeList &children,const HtmlAttribLis HtmlAttribList attrList = tagHtmlAttribs; // and remove the href attribute attrList.erase(attrList.begin()+index); - DocHRef *href = new DocHRef(parent,attrList,opt.value,g_relPath); + QCString relPath; + if (opt.value.at(0) != '#') relPath = g_relPath; + DocHRef *href = new DocHRef(parent,attrList,opt.value,relPath,convertNameToFile(g_fileName,FALSE,TRUE)); children.push_back(std::unique_ptr<DocHRef>(href)); g_insideHtmlLink=TRUE; retval = href->parse(); |