Skip to content

Commit

Permalink
bug_766164 Class Members is missing in the CHM.
Browse files Browse the repository at this point in the history
The "Local" part should only be added in case of a directory and BINARY_TOC
  • Loading branch information
albert-github committed Oct 22, 2021
1 parent 5a75d92 commit f375348
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/htmlhelp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ void HtmlHelp::addContentsItem(bool isDir,
bool /* addToNavIndex */,
const Definition * /* def */)
{
static bool binaryTOC = Config_getBool(BINARY_TOC);
// If we're using a binary toc then folders cannot have links.
// Tried this and I didn't see any problems, when not using
// the resetting of file and anchor the TOC works better
Expand All @@ -657,14 +658,18 @@ void HtmlHelp::addContentsItem(bool isDir,
if (file[0]=='^') p->cts << "URL"; else p->cts << "Local";
p->cts << "\" value=\"";
p->cts << &file[1];
p->cts << "\">";
}
else
{
p->cts << "<param name=\"Local\" value=\"";
p->cts << file << Doxygen::htmlFileExtension;
if (!anchor.isEmpty()) p->cts << "#" << anchor;
if (!(binaryTOC && isDir))
{
p->cts << "<param name=\"Local\" value=\"";
p->cts << file << Doxygen::htmlFileExtension;
if (!anchor.isEmpty()) p->cts << "#" << anchor;
p->cts << "\">";
}
}
p->cts << "\">";
}
p->cts << "<param name=\"ImageNumber\" value=\"";
if (isDir) // added - KPW
Expand Down

0 comments on commit f375348

Please sign in to comment.