summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2015-04-11 16:11:36 (GMT)
committeralbert-github <albert.tests@gmail.com>2015-04-11 16:11:36 (GMT)
commite34913dcbe0bee2c3e21d6e21b2bcc6970003a5c (patch)
tree8345ef62b670f2e215000206cd800db288152eca /src
parent298ab30b2a2aa0936f4683c9366afd44c00adc60 (diff)
downloadDoxygen-e34913dcbe0bee2c3e21d6e21b2bcc6970003a5c.zip
Doxygen-e34913dcbe0bee2c3e21d6e21b2bcc6970003a5c.tar.gz
Doxygen-e34913dcbe0bee2c3e21d6e21b2bcc6970003a5c.tar.bz2
Doxygen LaTeX / PDF links point to page 1
Based in the message: http://stackoverflow.com/questions/29551138/doxygen-latex-pdf-links-point-to-page-1 In case the CREATE_SUDIRS is set to YES the name of the link was pre=pended with the *sub dir) path, this has been removed.
Diffstat (limited to 'src')
-rw-r--r--src/latexgen.cpp6
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;
}
}
}