diff options
-rw-r--r-- | src/latexdocvisitor.cpp | 4 |
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 << "}"; } } |