From a6b0a7fe237c5eb6e76073d366f281c8413eb0dd Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 14 May 2018 15:54:03 +0200 Subject: Bug 796086 - Adjacent xrefitems always added to first list present on page Better to search backward then forward to find related item. --- src/commentscan.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 slii(*docEntry->sli); - for (slii.toFirst();(lii=slii.current());++slii) + for (slii.toLast();(lii=slii.current());--slii) { if (qstrcmp(lii->type,listName)==0) { -- cgit v0.12