From 10189681dcb46e543a287827e2096cef3dbc42ae Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sat, 12 Apr 2014 11:54:54 +0200 Subject: [PATCH] Fix broken links to subpages in LaTeX output --- src/latexdocvisitor.cpp | 4 ++-- 1 file 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 << "}"; } } -- cgit v0.12