From 37ea04c317f9e1e8a09e5944b8c6c2c2ef35b1f6 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sat, 29 Nov 2014 11:58:46 +0100 Subject: [PATCH] Bug ?? for page numbers in the latex indices Due to the fact that the path was not stripped from the file name in case CREATE_SUBDIRS was set to YES there was a reference to a non existing page reference. In the corresponding hypertarget and label the path was already stripped. --- src/latexgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/latexgen.cpp b/src/latexgen.cpp index 874b4850f98..e2c2a1130ec 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -1065,7 +1065,7 @@ void LatexGenerator::endIndexItem(const char *ref,const char *fn) { if (!ref && fn) { - t << "}{\\pageref{" << fn << "}}{}" << endl; + t << "}{\\pageref{" << stripPath(fn) << "}}{}" << endl; } }