From ed875603dc42d3a5ebbcfd89540b1f7ecf472ece Mon Sep 17 00:00:00 2001 From: albert-github Date: Sun, 17 Jan 2016 18:07:46 +0100 Subject: 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. --- src/latexgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v0.12