summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-07-01 14:30:09 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-07-01 14:30:09 (GMT)
commit955f746f9b26ca49e085fb8d84cc16085c8e6d21 (patch)
tree2843a7dadd061143aaac8a99b73a0afa64fde857 /src
parent3e9d9386950cc67d155a920cf8483c4d5bdcec3c (diff)
downloadDoxygen-955f746f9b26ca49e085fb8d84cc16085c8e6d21.zip
Doxygen-955f746f9b26ca49e085fb8d84cc16085c8e6d21.tar.gz
Doxygen-955f746f9b26ca49e085fb8d84cc16085c8e6d21.tar.bz2
Missing last item in htmlhelp level2 index
At every second level index part the last item is missing. We should not only forward but also backward
Diffstat (limited to 'src')
-rw-r--r--src/htmlhelp.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/htmlhelp.cpp b/src/htmlhelp.cpp
index 44dea05..8ef3d19 100644
--- a/src/htmlhelp.cpp
+++ b/src/htmlhelp.cpp
@@ -171,7 +171,7 @@ void HtmlHelpIndex::writeFields(FTextStream &t)
dict->sort();
IndexFieldSDict::Iterator ifli(*dict);
IndexField *f;
- QCString lastLevel1;
+ QCString prevLevel1;
bool level2Started=FALSE;
for (;(f=ifli.current());++ifli)
{
@@ -187,7 +187,6 @@ void HtmlHelpIndex::writeFields(FTextStream &t)
level1 = f->name.copy();
}
- //if (level1!=lastLevel1)
{ // finish old list at level 2
if (level2Started) t << " </UL>" << endl;
level2Started=FALSE;
@@ -206,10 +205,11 @@ void HtmlHelpIndex::writeFields(FTextStream &t)
nextLevel1 = fnext->name.left(fnext->name.find('?'));
--ifli;
}
- if (level1 != nextLevel1)
+ if (!(level1 == prevLevel1 || level1 == nextLevel1))
{
level2 = "";
}
+ prevLevel1 = level1.copy();
// </Antony>
if (level2.isEmpty())
@@ -257,7 +257,6 @@ void HtmlHelpIndex::writeFields(FTextStream &t)
t << "<param name=\"Name\" value=\"" << m_help->recode(level2) << "\">"
"</OBJECT>\n";
}
- lastLevel1 = level1.copy();
}
if (level2Started) t << " </UL>" << endl;
}