diff options
Diffstat (limited to 'src/rtfdocvisitor.cpp')
-rw-r--r-- | src/rtfdocvisitor.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rtfdocvisitor.cpp b/src/rtfdocvisitor.cpp index b1df440..025cc90 100644 --- a/src/rtfdocvisitor.cpp +++ b/src/rtfdocvisitor.cpp @@ -1135,12 +1135,11 @@ void RTFDocVisitor::visitPre(DocHRef *href) DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocHRef)}\n"); if (Config_getBool(RTF_HYPERLINKS)) { - if (href->url().startsWith("#CITEREF")) + if (href->url().startsWith("#")) { - // when starting with #CITEREF it is a doxygen generated "url"a - // so a local link + // when starting with # so a local link QCString cite; - cite = "citelist_" + href->url().right(href->url().length()-1); + cite = href->file() + "_" + href->url().right(href->url().length()-1); m_t << "{\\field " "{\\*\\fldinst " "{ HYPERLINK \\\\l \"" << rtfFormatBmkStr(cite) << "\" " |