diff options
author | albert-github <albert.tests@gmail.com> | 2016-01-17 17:07:46 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2016-01-17 17:07:46 (GMT) |
commit | ed875603dc42d3a5ebbcfd89540b1f7ecf472ece (patch) | |
tree | 31f0d475955d3083d10ed950f92f766d5fe75b61 /src | |
parent | 41e71437484aaaece77d155fc2c4fdaf5c72c71f (diff) | |
download | Doxygen-ed875603dc42d3a5ebbcfd89540b1f7ecf472ece.zip Doxygen-ed875603dc42d3a5ebbcfd89540b1f7ecf472ece.tar.gz Doxygen-ed875603dc42d3a5ebbcfd89540b1f7ecf472ece.tar.bz2 |
Problem jumping to line number in source code due to wrong hypertarget name
When having a line like "Definition at line 30 of file test.cpp." in the LaTeX document with source code the test.cpp is linked to the file but the 30 isn't (in HTML it is).
Problem is that in the hypertarget the extension is still present. This patch corrects this.
Diffstat (limited to 'src')
-rw-r--r-- | src/latexgen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp index 28ea2cc..b463a5b 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -199,7 +199,7 @@ void LatexCodeGenerator::writeLineNumber(const char *ref,const char *fileName,co { QCString lineAnchor; lineAnchor.sprintf("_l%05d",l); - lineAnchor.prepend(m_sourceFileName); + lineAnchor.prepend(stripExtensionGeneral(m_sourceFileName, ".tex")); //if (!m_prettyCode) return; if (usePDFLatex && pdfHyperlinks) { |