From 0615b1b023f7888dfdbeee7673d6d0bcc7b803df Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sun, 18 Dec 2016 14:59:11 +0100 Subject: Bug 707278 - Grouping of results fail when using built-in javascript search --- src/searchindex.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/searchindex.cpp b/src/searchindex.cpp index 500ed65..18d007f 100644 --- a/src/searchindex.cpp +++ b/src/searchindex.cpp @@ -1263,10 +1263,10 @@ SearchIndexList::~SearchIndexList() void SearchIndexList::append(Definition *d) { - SearchDefinitionList *l = find(d->name()); + QCString dispName = d->localName(); + SearchDefinitionList *l = find(dispName); if (l==0) { - QCString dispName = d->localName(); if (d->definitionType()==Definition::TypeGroup) { dispName = ((GroupDef*)d)->groupTitle(); @@ -1276,7 +1276,7 @@ void SearchIndexList::append(Definition *d) dispName = ((PageDef*)d)->title(); } l=new SearchDefinitionList(searchId(dispName),dispName); - SDict< SearchDefinitionList >::append(d->name(),l); + SDict< SearchDefinitionList >::append(dispName,l); } l->append(d); } -- cgit v0.12