Skip to content

Commit c6d79dd

Browse files
committed
@TableofContents in the @mainpage didn't work if GENERATE_TREEVIEW=YES and PAGE_OUTLINE_PANEL=NO
1 parent 1b17ec6 commit c6d79dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/index.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4802,6 +4802,7 @@ static void writeIndex(OutputList &ol)
48024802
bool vhdlOpt = Config_getBool(OPTIMIZE_OUTPUT_VHDL);
48034803
bool disableIndex = Config_getBool(DISABLE_INDEX);
48044804
bool generateTreeView = Config_getBool(GENERATE_TREEVIEW);
4805+
bool pageOutlinePanel = Config_getBool(PAGE_OUTLINE_PANEL);
48054806
bool fullSidebar = Config_getBool(FULL_SIDEBAR);
48064807
QCString projectName = Config_getString(PROJECT_NAME);
48074808
// save old generator state
@@ -4919,7 +4920,7 @@ static void writeIndex(OutputList &ol)
49194920

49204921
if (Doxygen::mainPage)
49214922
{
4922-
if (Doxygen::mainPage->localToc().isHtmlEnabled() && Doxygen::mainPage->hasSections() && !generateTreeView)
4923+
if (Doxygen::mainPage->localToc().isHtmlEnabled() && Doxygen::mainPage->hasSections() && !(generateTreeView && pageOutlinePanel))
49234924
{
49244925
Doxygen::mainPage->writeToc(ol,Doxygen::mainPage->localToc());
49254926
}
@@ -4939,7 +4940,7 @@ static void writeIndex(OutputList &ol)
49394940

49404941
if (Doxygen::mainPage &&
49414942
generateTreeView &&
4942-
Config_getBool(PAGE_OUTLINE_PANEL) &&
4943+
pageOutlinePanel &&
49434944
Doxygen::mainPage->localToc().isHtmlEnabled() &&
49444945
Doxygen::mainPage->hasSections()
49454946
)

0 commit comments

Comments
 (0)