diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2012-02-25 15:18:56 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2012-02-25 15:18:56 (GMT) |
commit | cff8111ed33af6033bd188868964d92ea3503188 (patch) | |
tree | 2a7451abfd771d43ea2b3ac2443d94c3eb5cfee7 /src/htmldocvisitor.cpp | |
parent | 34d4ace6d4037862b6d280f1d7534292c714bf59 (diff) | |
download | Doxygen-cff8111ed33af6033bd188868964d92ea3503188.zip Doxygen-cff8111ed33af6033bd188868964d92ea3503188.tar.gz Doxygen-cff8111ed33af6033bd188868964d92ea3503188.tar.bz2 |
Release-1.8.0
Diffstat (limited to 'src/htmldocvisitor.cpp')
-rw-r--r-- | src/htmldocvisitor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp index 4c76be3..8e8cdbd 100644 --- a/src/htmldocvisitor.cpp +++ b/src/htmldocvisitor.cpp @@ -1374,7 +1374,9 @@ void HtmlDocVisitor::visitPre(DocRef *ref) if (m_hide) return; if (!ref->file().isEmpty()) { - startLink(ref->ref(),ref->file(),ref->relPath(),ref->anchor()); + // when ref->isSubPage()==TRUE we use ref->file() for HTML and + // ref->anchor() for LaTeX/RTF + startLink(ref->ref(),ref->file(),ref->relPath(),ref->isSubPage() ? 0 : ref->anchor()); } if (!ref->hasLinkText()) filter(ref->targetTitle()); } |