summaryrefslogtreecommitdiffstats
path: root/src/commentscan.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-05-14 13:54:03 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-05-14 13:54:03 (GMT)
commita6b0a7fe237c5eb6e76073d366f281c8413eb0dd (patch)
treef5af8406c45a57a65227b5b65adfaa2736e2395f /src/commentscan.l
parentdf0d9c3df44dbce633c38e99d33be4de06706f7b (diff)
downloadDoxygen-a6b0a7fe237c5eb6e76073d366f281c8413eb0dd.zip
Doxygen-a6b0a7fe237c5eb6e76073d366f281c8413eb0dd.tar.gz
Doxygen-a6b0a7fe237c5eb6e76073d366f281c8413eb0dd.tar.bz2
Bug 796086 - Adjacent xrefitems always added to first list present on page
Better to search backward then forward to find related item.
Diffstat (limited to 'src/commentscan.l')
-rw-r--r--src/commentscan.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commentscan.l b/src/commentscan.l
index de31b2e..55c55a7 100644
--- a/src/commentscan.l
+++ b/src/commentscan.l
@@ -548,7 +548,7 @@ static void addXRefItem(const char *listName,const char *itemTitle,
if (docEntry->sli)
{
QListIterator<ListItemInfo> slii(*docEntry->sli);
- for (slii.toFirst();(lii=slii.current());++slii)
+ for (slii.toLast();(lii=slii.current());--slii)
{
if (qstrcmp(lii->type,listName)==0)
{