summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-04-12 10:06:58 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-04-12 10:06:58 (GMT)
commit88b7a713bdcae46d19eb5487777e0a98b848a708 (patch)
tree373a5089aab2a4b91d9bdbb591c77dcf646f1b9d
parent1e3e9f03e746d4ac46c9c7b1b80e7e3100ee42f0 (diff)
parent7b83e1ef3743aa06a5ccbcd78a28fc14f6d25049 (diff)
downloadDoxygen-88b7a713bdcae46d19eb5487777e0a98b848a708.zip
Doxygen-88b7a713bdcae46d19eb5487777e0a98b848a708.tar.gz
Doxygen-88b7a713bdcae46d19eb5487777e0a98b848a708.tar.bz2
Merge branch 'master' of github.com:doxygen/doxygen
-rw-r--r--src/latexdocvisitor.cpp21
1 files changed, 5 insertions, 16 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp
index 0699960..37c2130 100644
--- a/src/latexdocvisitor.cpp
+++ b/src/latexdocvisitor.cpp
@@ -1578,22 +1578,11 @@ void LatexDocVisitor::startLink(const QCString &ref,const QCString &file,const Q
{
if (ref.isEmpty() && Config_getBool("PDF_HYPERLINKS")) // internal PDF link
{
- if (ref.isEmpty()) {
- m_t << "\\hyperlink{";
- if (!file.isEmpty()) m_t << stripPath(file);
- if (!file.isEmpty() && !anchor.isEmpty()) m_t << "_";
- if (!anchor.isEmpty()) m_t << anchor;
- m_t << "}{";
- }
- else
- {
- QCString *dest;
- m_t << "\\href{";
- if ((dest=Doxygen::tagDestinationDict[ref])) m_t << *dest << "/";
- if (!file.isEmpty()) m_t << file << Doxygen::htmlFileExtension;
- if (!anchor.isEmpty()) m_t << "#" << anchor;
- m_t << "}{";
- }
+ m_t << "\\hyperlink{";
+ if (!file.isEmpty()) m_t << stripPath(file);
+ if (!file.isEmpty() && !anchor.isEmpty()) m_t << "_";
+ if (!anchor.isEmpty()) m_t << anchor;
+ m_t << "}{";
}
else if (ref.isEmpty()) // internal non-PDF link
{