diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2018-11-01 21:00:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-01 21:00:41 (GMT) |
commit | 13e67a586cf12365a74a8cf18287f7329afc60c0 (patch) | |
tree | 366f687c038a186ccc978e5d01c9c3612892ddd6 /src/reflist.cpp | |
parent | ae4b78517734b48eaeade83cc91258782520f039 (diff) | |
parent | cc3cb095a035db0037604dca2109c927e3ba7df3 (diff) | |
download | Doxygen-13e67a586cf12365a74a8cf18287f7329afc60c0.zip Doxygen-13e67a586cf12365a74a8cf18287f7329afc60c0.tar.gz Doxygen-13e67a586cf12365a74a8cf18287f7329afc60c0.tar.bz2 |
Merge pull request #6590 from albert-github/feature/issue_6589
issue_6589 anchor after test command in a namespace produces duplicate tests
Diffstat (limited to 'src/reflist.cpp')
-rw-r--r-- | src/reflist.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/reflist.cpp b/src/reflist.cpp index c48ba23..7ae4c80 100644 --- a/src/reflist.cpp +++ b/src/reflist.cpp @@ -131,7 +131,15 @@ void RefList::insertIntoList(const char *key,RefItem *item) { if (ri!=item) { - ri->extraItems.append(item); + // We also have to check if the item is not already in the "extra" list + QListIterator<RefItem> li(ri->extraItems); + RefItem *extraItem; + bool doubleItem = false; + for (li.toFirst();(extraItem=li.current());++li) + { + if (item == extraItem) doubleItem = true; + } + if (!doubleItem) ri->extraItems.append(item); } } } |