summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-04-12 09:54:54 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-04-12 09:54:54 (GMT)
commit10189681dcb46e543a287827e2096cef3dbc42ae (patch)
tree719db1330bd1e40d78f240c8df7e1c7ce0ae22b0 /src
parent837d63319a7b014412cb3cb2b5d27d2474a932c2 (diff)
downloadDoxygen-10189681dcb46e543a287827e2096cef3dbc42ae.zip
Doxygen-10189681dcb46e543a287827e2096cef3dbc42ae.tar.gz
Doxygen-10189681dcb46e543a287827e2096cef3dbc42ae.tar.bz2
[PATCH] Fix broken links to subpages in LaTeX output
Diffstat (limited to 'src')
-rw-r--r--src/latexdocvisitor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp
index 441b697..68f0f06 100644
--- a/src/latexdocvisitor.cpp
+++ b/src/latexdocvisitor.cpp
@@ -1544,8 +1544,8 @@ void LatexDocVisitor::endLink(const QCString &ref,const QCString &file,const QCS
m_t << "{";
filter(theTranslator->trPageAbbreviation());
m_t << "}{" << file;
- if (!anchor.isEmpty()) m_t << "_" << anchor;
- m_t << "}";
+ if (!file.isEmpty() && !anchor.isEmpty()) m_t << "_";
+ m_t << anchor << "}";
}
}