Skip to content

Commit

Permalink
Bug 707278 - Grouping of results fail when using built-in javascript …
Browse files Browse the repository at this point in the history
…search
  • Loading branch information
Dimitri van Heesch committed Dec 18, 2016
1 parent 5e894a7 commit 0615b1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/searchindex.cpp
Expand Up @@ -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();
Expand All @@ -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);
}
Expand Down

0 comments on commit 0615b1b

Please sign in to comment.