From efd49dacfbae1ad55d7922a748e2c1d60068b014 Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 22 Aug 2016 11:38:39 +0200 Subject: [PATCH] Bug 710611 - Missing Page References in the Index Chapters of the LaTex/PDF output In a pagref the path should not be present. --- src/latexgen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/latexgen.cpp b/src/latexgen.cpp index 4877599a9a0..54f45c3e0cb 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -1292,7 +1292,7 @@ void LatexGenerator::endIndexItem(const char *ref,const char *fn) //{ // t << "\\item\\contentsline{section}{"; // docify(text); -// t << "}{\\pageref{" << text << "}}" << endl; +// t << "}{\\pageref{" << stripPath(text) << "}}" << endl; //} @@ -1336,7 +1336,7 @@ void LatexGenerator::writeStartAnnoItem(const char *,const char *, void LatexGenerator::writeEndAnnoItem(const char *name) { - t << "}{\\pageref{" << name << "}}{}" << endl; + t << "}{\\pageref{" << stripPath(name) << "}}{}" << endl; } void LatexGenerator::startIndexKey() @@ -1357,7 +1357,7 @@ void LatexGenerator::startIndexValue(bool hasBrief) void LatexGenerator::endIndexValue(const char *name,bool /*hasBrief*/) { //if (hasBrief) t << ")"; - t << "}{\\pageref{" << name << "}}{}" << endl; + t << "}{\\pageref{" << stripPath(name) << "}}{}" << endl; } //void LatexGenerator::writeClassLink(const char *,const char *,