diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2015-04-12 10:09:35 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2015-04-12 10:09:35 (GMT) |
commit | 87d63bb9ba59d8e213107d56971c96d968ef4c00 (patch) | |
tree | 8e6b1d3d6a4b46f14196ec4f55c340dffd3cfc80 /src | |
parent | 88b7a713bdcae46d19eb5487777e0a98b848a708 (diff) | |
parent | e34913dcbe0bee2c3e21d6e21b2bcc6970003a5c (diff) | |
download | Doxygen-87d63bb9ba59d8e213107d56971c96d968ef4c00.zip Doxygen-87d63bb9ba59d8e213107d56971c96d968ef4c00.tar.gz Doxygen-87d63bb9ba59d8e213107d56971c96d968ef4c00.tar.bz2 |
Merge pull request #328 from albert-github/feature/bug_latex_ref
Doxygen LaTeX / PDF links point to page 1
Diffstat (limited to 'src')
-rw-r--r-- | src/latexgen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp index 1e2589e..042dd7c 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -1444,18 +1444,18 @@ void LatexGenerator::endDoxyAnchor(const char *fName,const char *anchor) void LatexGenerator::writeAnchor(const char *fName,const char *name) { //printf("LatexGenerator::writeAnchor(%s,%s)\n",fName,name); - t << "\\label{" << name << "}" << endl; + t << "\\label{" << stripPath(name) << "}" << endl; static bool pdfHyperlinks = Config_getBool("PDF_HYPERLINKS"); static bool usePDFLatex = Config_getBool("USE_PDFLATEX"); if (usePDFLatex && pdfHyperlinks) { if (fName) { - t << "\\hypertarget{" << stripPath(fName) << "_" << name << "}{}" << endl; + t << "\\hypertarget{" << stripPath(fName) << "_" << stripPath(name) << "}{}" << endl; } else { - t << "\\hypertarget{" << name << "}{}" << endl; + t << "\\hypertarget{" << stripPath(name) << "}{}" << endl; } } } |